Struct spirt::EntityDefs
source · pub struct EntityDefs<E: Entity> { /* private fields */ }
Expand description
Collection holding the actual definitions for Context
-allocated entities.
By design there is no way to iterate the contents of an EntityDefs
, or
generate entity indices without defining the entity in an EntityDefs
.
Implementations§
Trait Implementations§
source§impl<E: Clone + Entity> Clone for EntityDefs<E>where
E::Def: Clone,
impl<E: Clone + Entity> Clone for EntityDefs<E>where E::Def: Clone,
source§fn clone(&self) -> EntityDefs<E>
fn clone(&self) -> EntityDefs<E>
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 moresource§impl<E: Entity> Default for EntityDefs<E>
impl<E: Entity> Default for EntityDefs<E>
source§impl<E: Entity> Index<E> for EntityDefs<E>
impl<E: Entity> Index<E> for EntityDefs<E>
Auto Trait Implementations§
impl<E> RefUnwindSafe for EntityDefs<E>where E: RefUnwindSafe, <E as Entity>::Def: RefUnwindSafe,
impl<E> Send for EntityDefs<E>where E: Send, <E as Entity>::Def: Send,
impl<E> Sync for EntityDefs<E>where E: Sync, <E as Entity>::Def: Sync,
impl<E> Unpin for EntityDefs<E>where E: Unpin, <E as Entity>::Def: Unpin,
impl<E> UnwindSafe for EntityDefs<E>where E: UnwindSafe, <E as Entity>::Def: UnwindSafe,
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