pub struct Entity { /* private fields */ }Expand description
Handle in die Welt: Slot-Index + Generation.
Nach dem Freigeben steigt die Generation des Slots; ein altes Handle
zeigt dann ins Leere (World::alive und alle Zugriffe liefern false
beziehungsweise None), auch wenn dieselbe Index-Stelle später von
einer neuen Entität benutzt wird.
Implementations§
Trait Implementations§
impl Copy for Entity
impl Eq for Entity
impl StructuralPartialEq for Entity
Auto Trait Implementations§
impl Freeze for Entity
impl RefUnwindSafe for Entity
impl Send for Entity
impl Sync for Entity
impl Unpin for Entity
impl UnsafeUnpin for Entity
impl UnwindSafe for Entity
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