Struct entity_data::private::ArchetypeMetadata
source · [−]pub struct ArchetypeMetadata {
pub component_type_ids: fn() -> SmallVec<[TypeId; 32]>,
pub component_infos: fn() -> SmallVec<[ComponentInfo; 32]>,
pub needs_drop: bool,
pub clone_func: fn(_: *const u8) -> Vec<u8>,
pub drop_func: fn(_: *mut u8),
}Fields
component_type_ids: fn() -> SmallVec<[TypeId; 32]>component_infos: fn() -> SmallVec<[ComponentInfo; 32]>needs_drop: boolclone_func: fn(_: *const u8) -> Vec<u8>drop_func: fn(_: *mut u8)Trait Implementations
sourceimpl Clone for ArchetypeMetadata
impl Clone for ArchetypeMetadata
sourcefn clone(&self) -> ArchetypeMetadata
fn clone(&self) -> ArchetypeMetadata
Returns a copy of the value. Read more
1.0.0 · sourcefn 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more