pub struct Entity(/* private fields */);Expand description
Entity type, as seen by the user.
Implementations§
Source§impl Entity
impl Entity
Sourcepub fn from_parts(index: Index, generation: Generation) -> Self
pub fn from_parts(index: Index, generation: Generation) -> Self
Create new entity with the given given index and generation.
pub fn generation(&self) -> Generation
Trait Implementations§
Source§impl Ord for Entity
impl Ord for Entity
Source§impl PartialOrd for Entity
impl PartialOrd for Entity
impl Copy for Entity
impl Eq 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 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