pub struct EntityLoc<'a> { /* private fields */ }Expand description
Entity reference that is guaranteed to be alive. The value is bound to the world borrow that prevents the entity from being removed. The entity location is known.
Implementations§
Trait Implementations§
source§impl<'a> AliveEntity for EntityLoc<'a>
impl<'a> AliveEntity for EntityLoc<'a>
source§fn entity_ref<'b>(&self, _world: &'b mut World) -> EntityRef<'b>
fn entity_ref<'b>(&self, _world: &'b mut World) -> EntityRef<'b>
Returns entity reference if it is alive.
source§fn entity_loc<'b>(&self, _entities: &'b EntitySet) -> EntityLoc<'b>
fn entity_loc<'b>(&self, _entities: &'b EntitySet) -> EntityLoc<'b>
Returns entity with bound location.
source§impl<'a> Entity for EntityLoc<'a>
impl<'a> Entity for EntityLoc<'a>
source§impl<'a> Ord for EntityLoc<'a>
impl<'a> Ord for EntityLoc<'a>
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<EntityBound<'_>> for EntityLoc<'_>
impl PartialEq<EntityBound<'_>> for EntityLoc<'_>
source§fn eq(&self, other: &EntityBound<'_>) -> bool
fn eq(&self, other: &EntityBound<'_>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialEq<EntityId> for EntityLoc<'_>
impl PartialEq<EntityId> for EntityLoc<'_>
source§impl PartialEq<EntityLoc<'_>> for EntityBound<'_>
impl PartialEq<EntityLoc<'_>> for EntityBound<'_>
source§impl PartialEq<EntityLoc<'_>> for EntityId
impl PartialEq<EntityLoc<'_>> for EntityId
source§impl PartialEq<EntityLoc<'_>> for EntityRef<'_>
impl PartialEq<EntityLoc<'_>> for EntityRef<'_>
source§impl PartialEq<EntityLoc<'_>> for FlowEntity
impl PartialEq<EntityLoc<'_>> for FlowEntity
source§impl PartialEq<EntityRef<'_>> for EntityLoc<'_>
impl PartialEq<EntityRef<'_>> for EntityLoc<'_>
source§impl PartialEq<FlowEntity> for EntityLoc<'_>
impl PartialEq<FlowEntity> for EntityLoc<'_>
source§fn eq(&self, other: &FlowEntity) -> bool
fn eq(&self, other: &FlowEntity) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl<'a> PartialEq for EntityLoc<'a>
impl<'a> PartialEq for EntityLoc<'a>
source§impl<'a> PartialOrd for EntityLoc<'a>
impl<'a> PartialOrd for EntityLoc<'a>
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<'a> Copy for EntityLoc<'a>
impl<'a> Eq for EntityLoc<'a>
impl<'a> StructuralPartialEq for EntityLoc<'a>
Auto Trait Implementations§
impl<'a> Freeze for EntityLoc<'a>
impl<'a> !RefUnwindSafe for EntityLoc<'a>
impl<'a> Send for EntityLoc<'a>
impl<'a> Sync for EntityLoc<'a>
impl<'a> Unpin for EntityLoc<'a>
impl<'a> !UnwindSafe for EntityLoc<'a>
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)