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§impl PartialEq<EntityLoc<'_>> for EntityBound<'_>
impl PartialEq<EntityLoc<'_>> for EntityBound<'_>
Source§impl PartialEq<EntityLoc<'_>> for FlowEntity
impl PartialEq<EntityLoc<'_>> for FlowEntity
Source§impl PartialEq<FlowEntity> for EntityLoc<'_>
impl PartialEq<FlowEntity> for EntityLoc<'_>
Source§impl<'a> PartialOrd for EntityLoc<'a>
impl<'a> PartialOrd for EntityLoc<'a>
impl<'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§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<'de, F, T> Deserialize<'de, As<F>> for T
impl<'de, F, T> Deserialize<'de, As<F>> for T
Source§fn deserialize(deserializer: Deserializer<'de>) -> Result<T, DeserializeError>
fn deserialize(deserializer: Deserializer<'de>) -> Result<T, DeserializeError>
Deserializes value provided deserializer.
Returns deserialized value and the number of bytes consumed from
the and of input. Read more
Source§fn deserialize_in_place(
&mut self,
deserializer: Deserializer<'de>,
) -> Result<(), DeserializeError>
fn deserialize_in_place( &mut self, deserializer: Deserializer<'de>, ) -> Result<(), DeserializeError>
Deserializes value in-place provided deserializer.
Overwrites
self with data from the input. Read moreSource§impl<'de, F, T> Deserialize<'de, Ref<F>> for T
impl<'de, F, T> Deserialize<'de, Ref<F>> for T
Source§fn deserialize(de: Deserializer<'de>) -> Result<T, DeserializeError>
fn deserialize(de: Deserializer<'de>) -> Result<T, DeserializeError>
Deserializes value provided deserializer.
Returns deserialized value and the number of bytes consumed from
the and of input. Read more
Source§fn deserialize_in_place(
&mut self,
de: Deserializer<'de>,
) -> Result<(), DeserializeError>
fn deserialize_in_place( &mut self, de: Deserializer<'de>, ) -> Result<(), DeserializeError>
Deserializes value in-place provided deserializer.
Overwrites
self with data from the input. Read moreSource§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more