Struct rinecs::entity::Entity [−][src]
pub struct Entity { /* fields omitted */ }
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
Implementations
Trait Implementations
impl<'de> Deserialize<'de> for Entity
[src]
impl<'de> Deserialize<'de> for Entity
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl<'a> FromComponent<'a, Entity> for Entity
[src]
impl<'a> FromComponent<'a, Entity> for Entity
[src]fn from_component(entity: Entity) -> Entity
[src]
impl PartialOrd<Entity> for Entity
[src]
impl PartialOrd<Entity> for Entity
[src]impl<'a> UnorderedData<'a> for Entity
[src]
impl<'a> UnorderedData<'a> for Entity
[src]type Iter = EntitiesIter<'a>
type IterMut = EntitiesIter<'a>
type Components = Entity
type ComponentsRef = Entity
type Storage = &'a [(Entity, MaskType)]
fn query_mask<E: EntitiesStorage>(_entities: &E) -> Bitmask
[src]
fn into_iter<E: EntitiesStorage>(entities: &'a E) -> Self::Iter
[src]
fn into_iter_mut<E: EntitiesStorage>(entities: &'a E) -> Self::Iter
[src]
fn storage<E: EntitiesStorage>(entities: &'a E) -> Option<Self::Storage>
[src]
impl Copy for Entity
[src]
impl Eq for Entity
[src]
impl SafeIter<'_> for Entity
[src]
impl StructuralEq for Entity
[src]
impl StructuralPartialEq for Entity
[src]
Auto Trait Implementations
impl RefUnwindSafe for Entity
impl Send for Entity
impl Sync for Entity
impl Unpin for Entity
impl UnwindSafe for Entity
Blanket Implementations
impl<T> CallHasher for T where
T: Hash,
[src]
impl<T> CallHasher for T where
T: Hash,
[src]impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]pub fn equivalent(&self, key: &K) -> bool
[src]
impl<T> Serialize for T where
T: Serialize + ?Sized,
[src]
impl<T> Serialize for T where
T: Serialize + ?Sized,
[src]pub fn erased_serialize(
&self,
serializer: &mut dyn Serializer
) -> Result<Ok, Error>
[src]
&self,
serializer: &mut dyn Serializer
) -> Result<Ok, Error>
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,