pub struct EntityID(/* private fields */);
Expand description
A key to the World slotmap containing entities.
Trait Implementations§
source§impl Key for EntityID
impl Key for EntityID
source§fn null() -> Self
fn null() -> Self
Creates a new key that is always invalid and distinct from any non-null
key. A null key can only be created through this method (or default
initialization of keys made with
new_key_type!
, which calls this
method). Read moresource§impl Ord for EntityID
impl Ord for EntityID
source§impl PartialEq for EntityID
impl PartialEq for EntityID
source§impl PartialOrd for EntityID
impl PartialOrd for EntityID
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for EntityID
impl Eq for EntityID
impl StructuralPartialEq for EntityID
Auto Trait Implementations§
impl Freeze for EntityID
impl RefUnwindSafe for EntityID
impl Send for EntityID
impl Sync for EntityID
impl Unpin for EntityID
impl UnwindSafe for EntityID
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