pub struct Archetype<Metadata> {
pub vec: VecAny,
pub non_erased: Vec<NonErasedData<Metadata>>,
/* private fields */
}
Expand description
Represents a single archetype in a ArchitypicalErasedRegistry.
Fields
vec: VecAny
Archetype of Vec
non_erased: Vec<NonErasedData<Metadata>>
All data that doesn’t need to be type erased. Uses the same indices as the vec.
Auto Trait Implementations
impl<Metadata> !RefUnwindSafe for Archetype<Metadata>
impl<Metadata> Send for Archetype<Metadata> where
Metadata: Send,
impl<Metadata> Sync for Archetype<Metadata> where
Metadata: Sync,
impl<Metadata> !Unpin for Archetype<Metadata>
impl<Metadata> !UnwindSafe for Archetype<Metadata>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more