Struct bevy::ecs::archetype::Archetype [−]
Implementations
impl Archetype
pub fn new(
id: ArchetypeId,
table_id: TableId,
table_components: Cow<'static, [ComponentId]>,
sparse_set_components: Cow<'static, [ComponentId]>,
table_archetype_components: Vec<ArchetypeComponentId, Global>,
sparse_set_archetype_components: Vec<ArchetypeComponentId, Global>
) -> Archetype
id: ArchetypeId,
table_id: TableId,
table_components: Cow<'static, [ComponentId]>,
sparse_set_components: Cow<'static, [ComponentId]>,
table_archetype_components: Vec<ArchetypeComponentId, Global>,
sparse_set_archetype_components: Vec<ArchetypeComponentId, Global>
) -> Archetype
pub fn id(&self) -> ArchetypeId
pub fn table_id(&self) -> TableId
pub fn entities(&self) -> &[Entity]ⓘ
pub fn entity_table_rows(&self) -> &[usize]ⓘ
pub fn table_components(&self) -> &[ComponentId]ⓘ
pub fn sparse_set_components(&self) -> &[ComponentId]ⓘ
pub fn unique_components(&self) -> &SparseSet<ComponentId, Column>
pub fn unique_components_mut(&mut self) -> &mut SparseSet<ComponentId, Column>
pub fn components(&self) -> impl Iterator<Item = ComponentId>
pub fn edges(&self) -> &Edges
pub fn entity_table_row(&self, index: usize) -> usize
pub fn set_entity_table_row(&mut self, index: usize, table_row: usize)
pub unsafe fn allocate(
&mut self,
entity: Entity,
table_row: usize
) -> EntityLocation
&mut self,
entity: Entity,
table_row: usize
) -> EntityLocation
Safety
valid component values must be immediately written to the relevant storages
table_row
must be valid
pub fn reserve(&mut self, additional: usize)
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn contains(&self, component_id: ComponentId) -> bool
pub fn get_storage_type(&self, component_id: ComponentId) -> Option<StorageType>
pub fn get_archetype_component_id(
&self,
component_id: ComponentId
) -> Option<ArchetypeComponentId>
&self,
component_id: ComponentId
) -> Option<ArchetypeComponentId>
Auto Trait Implementations
impl !RefUnwindSafe for Archetype
impl !Send for Archetype
impl !Sync for Archetype
impl Unpin for Archetype
impl UnwindSafe for Archetype
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Any for T where
T: Any,
T: Any,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Downcast for T where
T: Any,
T: Any,
pub fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
pub fn as_any(&self) -> &(dyn Any + 'static)
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
impl<T> Downcast<T> for T
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>
impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
[src]
Notable traits for Instrumented<T>
impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
pub fn in_current_span(self) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>
impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
[src]
Notable traits for Instrumented<T>
impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Upcast<T> for T
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,