Struct rin::ecs::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 DataAccesses for Entity
[src]
impl DataAccesses for Entity
[src]impl<'de> Deserialize<'de> for Entity
[src]
impl<'de> Deserialize<'de> for Entity
[src]pub fn deserialize<__D>(
__deserializer: __D
) -> Result<Entity, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
[src]
__deserializer: __D
) -> Result<Entity, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
impl<'a> FromComponent<'a, Entity> for Entity
[src]
impl<'a> FromComponent<'a, Entity> for Entity
[src]pub fn from_component(entity: Entity) -> Entity
[src]
impl PartialOrd<Entity> for Entity
[src]
impl PartialOrd<Entity> for Entity
[src]impl Serialize for Entity
[src]
impl Serialize for Entity
[src]pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
[src]
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
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, U256)]
pub fn query_mask<E>(_entities: &E) -> Bitmask where
E: EntitiesStorage,
[src]
E: EntitiesStorage,
pub fn into_iter<E>(entities: &'a E) -> <Entity as UnorderedData<'a>>::Iter where
E: EntitiesStorage,
[src]
E: EntitiesStorage,
pub fn into_iter_mut<E>(entities: &'a E) -> <Entity as UnorderedData<'a>>::Iter where
E: EntitiesStorage,
[src]
E: EntitiesStorage,
pub fn storage<E>(
entities: &'a E
) -> Option<<Entity as UnorderedData<'a>>::Storage> where
E: EntitiesStorage,
[src]
entities: &'a E
) -> Option<<Entity as UnorderedData<'a>>::Storage> where
E: EntitiesStorage,
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<T> DowncastSync for T where
T: Any + Send + Sync,
[src]
impl<T> DowncastSync for T where
T: Any + Send + Sync,
[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<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]pub fn to_subset(&self) -> Option<SS>
[src]
pub fn is_in_subset(&self) -> bool
[src]
pub fn to_subset_unchecked(&self) -> SS
[src]
pub fn from_subset(element: &SS) -> SP
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]pub fn to_subset(&self) -> Option<SS>
[src]
pub fn is_in_subset(&self) -> bool
[src]
pub fn to_subset_unchecked(&self) -> SS
[src]
pub fn from_subset(element: &SS) -> SP
[src]
impl<T> CollisionObjectHandle for T where
T: 'static + Copy + Hash + PartialEq<T> + Eq + Send + Sync,
[src]
T: 'static + Copy + Hash + PartialEq<T> + Eq + Send + Sync,
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<N> NodeTrait for N where
N: Copy + Ord + Hash,
[src]
N: Copy + Ord + Hash,
impl<T> Slottable for T where
T: Copy,
[src]
T: Copy,