Struct entity_data::private::ArchetypeMetadata
source · pub struct ArchetypeMetadata {
pub type_id: TypeId,
pub component_type_ids: fn() -> SmallVec<[TypeId; 32]>,
pub component_infos: fn() -> SmallVec<[ComponentInfo; 32]>,
pub size: usize,
pub needs_drop: bool,
pub drop_fn: unsafe fn(_: *mut u8),
}
Fields§
§type_id: TypeId
§component_type_ids: fn() -> SmallVec<[TypeId; 32]>
§component_infos: fn() -> SmallVec<[ComponentInfo; 32]>
§size: usize
§needs_drop: bool
§drop_fn: unsafe fn(_: *mut u8)
Implementations§
source§impl ArchetypeMetadata
impl ArchetypeMetadata
pub fn component_infos(&self) -> SmallVec<[ComponentInfo; 32]>
Trait Implementations§
source§impl Clone for ArchetypeMetadata
impl Clone for ArchetypeMetadata
source§fn clone(&self) -> ArchetypeMetadata
fn clone(&self) -> ArchetypeMetadata
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreimpl Copy for ArchetypeMetadata
Auto Trait Implementations§
impl RefUnwindSafe for ArchetypeMetadata
impl Send for ArchetypeMetadata
impl Sync for ArchetypeMetadata
impl Unpin for ArchetypeMetadata
impl UnwindSafe for ArchetypeMetadata
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more