diff --git a/crates/bevy_ecs/src/entity/mod.rs b/crates/bevy_ecs/src/entity/mod.rs index 86a99132f197e9..be142a594cd1d1 100644 --- a/crates/bevy_ecs/src/entity/mod.rs +++ b/crates/bevy_ecs/src/entity/mod.rs @@ -243,10 +243,6 @@ pub struct Entities { } impl Entities { - pub fn meta_len(&self) -> usize { - self.meta.len() - } - /// Reserve entity IDs concurrently. /// /// Storage for entity generation and location is lazily allocated by calling `flush`. @@ -548,6 +544,12 @@ impl Entities { } } + /// Accessor for getting the length of the vec in `self.meta` + #[inline] + pub fn meta_len(&self) -> usize { + self.meta.len() + } + #[inline] pub fn len(&self) -> u32 { self.len