fmt
This commit is contained in:
parent
b1985fa5ff
commit
0d20581527
@ -9,7 +9,8 @@ use crate::{
|
|||||||
bundle::{Bundle, DynamicBundle},
|
bundle::{Bundle, DynamicBundle},
|
||||||
change_detection::MaybeLocation,
|
change_detection::MaybeLocation,
|
||||||
component::{
|
component::{
|
||||||
ComponentId, Components, ComponentsRegistrator, RequiredComponentConstructor, RequiredComponents, RequiredComponentsError, StorageType, Tick
|
ComponentId, Components, ComponentsRegistrator, RequiredComponentConstructor,
|
||||||
|
RequiredComponents, RequiredComponentsError, StorageType, Tick,
|
||||||
},
|
},
|
||||||
entity::Entity,
|
entity::Entity,
|
||||||
query::DebugCheckedUnwrap as _,
|
query::DebugCheckedUnwrap as _,
|
||||||
@ -451,7 +452,7 @@ impl Bundles {
|
|||||||
pub fn iter(&self) -> impl Iterator<Item = &BundleInfo> {
|
pub fn iter(&self) -> impl Iterator<Item = &BundleInfo> {
|
||||||
self.bundle_infos.iter()
|
self.bundle_infos.iter()
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Iterate over [`BundleInfo`] containing `component`, either explicitly or as required.
|
/// Iterate over [`BundleInfo`] containing `component`, either explicitly or as required.
|
||||||
pub fn iter_containing(&self, component: ComponentId) -> impl Iterator<Item = &BundleInfo> {
|
pub fn iter_containing(&self, component: ComponentId) -> impl Iterator<Item = &BundleInfo> {
|
||||||
self.components_in_bundles
|
self.components_in_bundles
|
||||||
@ -623,7 +624,7 @@ impl Bundles {
|
|||||||
});
|
});
|
||||||
*bundle_id
|
*bundle_id
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Updates the required components of bundles that contain `requiree`.
|
/// Updates the required components of bundles that contain `requiree`.
|
||||||
///
|
///
|
||||||
/// # Safety
|
/// # Safety
|
||||||
|
Loading…
Reference in New Issue
Block a user