[−][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 EntityTrait 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 Entitytype 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>) -> Bitmaskfn into_iter(entities: Entities<'a>) -> Self::Iter[src]
fn into_iter(entities: Entities<'a>) -> Self::Iterfn storage(entities: Entities<'a>) -> Self::Storage[src]
fn storage(entities: Entities<'a>) -> Self::Storageimpl<'a> UnorderedDataLocal<'a> for Entity[src]
impl<'a> UnorderedDataLocal<'a> for Entitytype 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>) -> Bitmaskfn into_iter_thread_local(entities: EntitiesThreadLocal<'a>) -> Self::Iter[src]
fn into_iter_thread_local(entities: EntitiesThreadLocal<'a>) -> Self::Iterfn storage_thread_local(entities: EntitiesThreadLocal<'a>) -> Self::Storage[src]
fn storage_thread_local(entities: EntitiesThreadLocal<'a>) -> Self::Storageimpl<'a> FromComponent<'a, Entity> for Entity[src]
impl<'a> FromComponent<'a, Entity> for Entityfn from_component(entity: Entity) -> Entity[src]
fn from_component(entity: Entity) -> Entityimpl PartialOrd<Entity> for Entity[src]
impl PartialOrd<Entity> for Entityfn 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) -> boolfn le(&self, other: &Entity) -> bool[src]
fn le(&self, other: &Entity) -> boolfn gt(&self, other: &Entity) -> bool[src]
fn gt(&self, other: &Entity) -> boolfn ge(&self, other: &Entity) -> bool[src]
fn ge(&self, other: &Entity) -> boolimpl Ord for Entity[src]
impl Ord for Entityfn cmp(&self, other: &Entity) -> Ordering[src]
fn cmp(&self, other: &Entity) -> Orderingfn max(self, other: Self) -> Self1.21.0[src]
fn max(self, other: Self) -> Self1.21.0
[src]Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self1.21.0[src]
fn min(self, other: Self) -> Self1.21.0
[src]Compares and returns the minimum of two values. Read more
impl PartialEq<Entity> for Entity[src]
impl PartialEq<Entity> for Entityimpl Clone for Entity[src]
impl Clone for Entityfn clone(&self) -> Entity[src]
fn clone(&self) -> Entityfn 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 Entityimpl Eq for Entity[src]
impl Eq for Entityimpl Debug for Entity[src]
impl Debug for Entityimpl Hash for Entity[src]
impl Hash for Entityfn 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 Entityfn 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 Entityfn 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 Timpl<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) -> TypeIdimpl<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 Timpl<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) -> TypeIdimpl<T> SetParameter for T[src]
impl<T> SetParameter for Tfn 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>