[−][src]Struct rinecs::Entity
The id of an entity.
Can also be used as an operator to retrieve all the entities that match the rest of the operators
for (entity, pos) in entities.iter_for::<(Entity, Read<Position>)>(){ //... }
Will return each entity that has a Position component and it's position
Methods
impl Entity
[src]
impl Entity
Trait Implementations
impl<'a> StorageRef<'a, Entity> for &'a [(Entity, MaskType)]
[src]
impl<'a> StorageRef<'a, Entity> for &'a [(Entity, MaskType)]
impl<'a> UnorderedData<'a> for Entity
[src]
impl<'a> UnorderedData<'a> for Entity
type Iter = EntitiesIter<'a>
type Components = Entity
type ComponentsRef = Entity
type Storage = &'a [(Entity, MaskType)]
fn components_mask(_entities: Entities<'a>) -> Bitmask
[src]
fn components_mask(_entities: Entities<'a>) -> Bitmask
fn into_iter(entities: Entities<'a>) -> Self::Iter
[src]
fn into_iter(entities: Entities<'a>) -> Self::Iter
fn storage(entities: Entities<'a>) -> Self::Storage
[src]
fn storage(entities: Entities<'a>) -> Self::Storage
impl<'a> UnorderedDataLocal<'a> for Entity
[src]
impl<'a> UnorderedDataLocal<'a> for Entity
type Iter = EntitiesIter<'a>
type Components = Entity
type ComponentsRef = Entity
type Storage = &'a [(Entity, MaskType)]
fn components_mask_thread_local(_entities: EntitiesThreadLocal<'a>) -> Bitmask
[src]
fn components_mask_thread_local(_entities: EntitiesThreadLocal<'a>) -> Bitmask
fn into_iter_thread_local(entities: EntitiesThreadLocal<'a>) -> Self::Iter
[src]
fn into_iter_thread_local(entities: EntitiesThreadLocal<'a>) -> Self::Iter
fn storage_thread_local(entities: EntitiesThreadLocal<'a>) -> Self::Storage
[src]
fn storage_thread_local(entities: EntitiesThreadLocal<'a>) -> Self::Storage
impl<'a> FromComponent<'a, Entity> for Entity
[src]
impl<'a> FromComponent<'a, Entity> for Entity
fn from_component(entity: Entity) -> Entity
[src]
fn from_component(entity: Entity) -> Entity
impl PartialOrd<Entity> for Entity
[src]
impl PartialOrd<Entity> for Entity
fn partial_cmp(&self, other: &Entity) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &Entity) -> Option<Ordering>
fn lt(&self, other: &Entity) -> bool
[src]
fn lt(&self, other: &Entity) -> bool
fn le(&self, other: &Entity) -> bool
[src]
fn le(&self, other: &Entity) -> bool
fn gt(&self, other: &Entity) -> bool
[src]
fn gt(&self, other: &Entity) -> bool
fn ge(&self, other: &Entity) -> bool
[src]
fn ge(&self, other: &Entity) -> bool
impl Ord for Entity
[src]
impl Ord for Entity
fn cmp(&self, other: &Entity) -> Ordering
[src]
fn cmp(&self, other: &Entity) -> Ordering
fn max(self, other: Self) -> Self
1.21.0[src]
fn max(self, other: Self) -> Self
1.21.0
[src]Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
1.21.0
[src]Compares and returns the minimum of two values. Read more
impl PartialEq<Entity> for Entity
[src]
impl PartialEq<Entity> for Entity
impl Clone for Entity
[src]
impl Clone for Entity
fn clone(&self) -> Entity
[src]
fn clone(&self) -> Entity
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Copy for Entity
[src]
impl Copy for Entity
impl Eq for Entity
[src]
impl Eq for Entity
impl Debug for Entity
[src]
impl Debug for Entity
impl Hash for Entity
[src]
impl Hash for Entity
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
[src]Feeds a slice of this type into the given [Hasher
]. Read more
impl Serialize for Entity
[src]
impl Serialize for Entity
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
impl<'de> Deserialize<'de> for Entity
[src]
impl<'de> Deserialize<'de> for Entity
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId
[src]
fn get_type_id(&self) -> TypeId
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
fn borrow_mut(&mut self) -> &mut T
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
impl<T> Any for T where
T: Any,
[src]
impl<T> Any for T where
T: Any,
fn get_type_id(&self) -> TypeId
[src]
fn get_type_id(&self) -> TypeId
impl<T> SetParameter for T
[src]
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
[src]
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
Sets value
as a parameter of self
.
impl<T> Serialize for T where
T: Serialize + ?Sized,
[src]
impl<T> Serialize for T where
T: Serialize + ?Sized,
fn erased_serialize(&self, serializer: &mut dyn Serializer) -> Result<Ok, Error>
[src]
fn erased_serialize(&self, serializer: &mut dyn Serializer) -> Result<Ok, Error>