pub struct EntityId { /* private fields */ }Expand description
Generation-checked O(1) handle referencing an entity inside GameWorld.
Implementations§
Source§impl EntityId
impl EntityId
pub fn get_index(&self) -> u32
pub fn get_mut_index(&mut self) -> &mut u32
pub fn set_index(&mut self, val: u32) -> &mut Self
pub fn get_generation(&self) -> u32
pub fn get_mut_generation(&mut self) -> &mut u32
pub fn set_generation(&mut self, val: u32) -> &mut Self
Trait Implementations§
impl Copy for EntityId
impl Eq for EntityId
impl StructuralPartialEq for EntityId
Auto Trait Implementations§
impl Forget for EntityId
impl Freeze for EntityId
impl Move for EntityId
impl RefUnwindSafe for EntityId
impl Send for EntityId
impl Sync for EntityId
impl Unpin for EntityId
impl UnsafeUnpin 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