Struct rin::ecs::UniqueEntities [−][src]
pub struct UniqueEntities(_);
Implementations
impl UniqueEntities
[src]
impl UniqueEntities
[src]pub fn try_new(entities: Vec<Entity, Global>) -> Option<UniqueEntities>
[src]
Creates a new UniqueEntities checking that all the values are unique Can be slow when using it repeatedly for many entities
pub unsafe fn new_from_unchecked(
entities: Vec<Entity, Global>
) -> UniqueEntities
[src]
entities: Vec<Entity, Global>
) -> UniqueEntities
pub fn with_capacity(capacity: usize) -> UniqueEntities
[src]
pub fn is_empty(&self) -> bool
[src]
pub fn len(&self) -> usize
[src]
pub fn unique_iter(&self) -> UniqueEntitiesIter<'_>
[src]
pub fn iter(&self) -> Iter<'_, Entity>
[src]
pub fn first(&self) -> Option<Entity>
[src]
pub fn last(&self) -> Option<Entity>
[src]
pub fn unique_par_iter(&self) -> UniqueEntitiesParIter<'_>
[src]
pub fn par_iter(&self) -> Iter<'_, Entity>
[src]
pub fn into_vec(self) -> Vec<Entity, Global>ⓘ
[src]
Trait Implementations
impl Clone for UniqueEntities
[src]
impl Clone for UniqueEntities
[src]pub fn clone(&self) -> UniqueEntities
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for UniqueEntities
[src]
impl Debug for UniqueEntities
[src]impl Default for UniqueEntities
[src]
impl Default for UniqueEntities
[src]pub fn default() -> UniqueEntities
[src]
impl<'de> Deserialize<'de> for UniqueEntities
[src]
impl<'de> Deserialize<'de> for UniqueEntities
[src]pub fn deserialize<__D>(
__deserializer: __D
) -> Result<UniqueEntities, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
[src]
__deserializer: __D
) -> Result<UniqueEntities, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
impl Index<usize> for UniqueEntities
[src]
impl Index<usize> for UniqueEntities
[src]impl<'a, S> IntoEntitiesIterator<'a, S> for &'a UniqueEntities where
S: StorageRef<'a> + 'a,
[src]
impl<'a, S> IntoEntitiesIterator<'a, S> for &'a UniqueEntities where
S: StorageRef<'a> + 'a,
[src]type IntoEntitiesIter = EntitiesComponentIter<'a, Copied<Iter<'a, Entity>>, S>
type IntoEntitiesIterMut = EntitiesComponentIter<'a, Copied<Iter<'a, Entity>>, S>
type IntoEntitiesOptIter = EntitiesComponentOptIter<'a, Copied<Iter<'a, Entity>>, S>
type IntoEntitiesOptIterMut = EntitiesComponentOptIter<'a, Copied<Iter<'a, Entity>>, S>
pub fn storage_entities_iter(
self,
storage: Option<S>
) -> <&'a UniqueEntities as IntoEntitiesIterator<'a, S>>::IntoEntitiesIter where
S: ReadOnlyStorage,
[src]
self,
storage: Option<S>
) -> <&'a UniqueEntities as IntoEntitiesIterator<'a, S>>::IntoEntitiesIter where
S: ReadOnlyStorage,
pub fn storage_entities_iter_mut(
self,
storage: Option<S>
) -> <&'a UniqueEntities as IntoEntitiesIterator<'a, S>>::IntoEntitiesIterMut
[src]
self,
storage: Option<S>
) -> <&'a UniqueEntities as IntoEntitiesIterator<'a, S>>::IntoEntitiesIterMut
pub fn storage_entities_opt_iter(
self,
storage: Option<S>
) -> <&'a UniqueEntities as IntoEntitiesIterator<'a, S>>::IntoEntitiesOptIter where
S: ReadOnlyStorage,
[src]
self,
storage: Option<S>
) -> <&'a UniqueEntities as IntoEntitiesIterator<'a, S>>::IntoEntitiesOptIter where
S: ReadOnlyStorage,
pub fn storage_entities_opt_iter_mut(
self,
storage: Option<S>
) -> <&'a UniqueEntities as IntoEntitiesIterator<'a, S>>::IntoEntitiesOptIterMut
[src]
self,
storage: Option<S>
) -> <&'a UniqueEntities as IntoEntitiesIterator<'a, S>>::IntoEntitiesOptIterMut
impl IntoIterator for UniqueEntities
[src]
impl IntoIterator for UniqueEntities
[src]type Item = Entity
The type of the elements being iterated over.
type IntoIter = UniqueEntitiesIntoIter
Which kind of iterator are we turning this into?
pub fn into_iter(self) -> <UniqueEntities as IntoIterator>::IntoIter
[src]
impl<'a> IntoIterator for &'a UniqueEntities
[src]
impl<'a> IntoIterator for &'a UniqueEntities
[src]type Item = &'a UniqueEntity
The type of the elements being iterated over.
type IntoIter = UniqueEntitiesIter<'a>
Which kind of iterator are we turning this into?
pub fn into_iter(self) -> <&'a UniqueEntities as IntoIterator>::IntoIter
[src]
impl<'a> IntoIterator for &'a mut UniqueEntities
[src]
impl<'a> IntoIterator for &'a mut UniqueEntities
[src]type Item = &'a UniqueEntity
The type of the elements being iterated over.
type IntoIter = UniqueEntitiesIter<'a>
Which kind of iterator are we turning this into?
pub fn into_iter(self) -> <&'a mut UniqueEntities as IntoIterator>::IntoIter
[src]
impl Serialize for UniqueEntities
[src]
impl Serialize for UniqueEntities
[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,
Auto Trait Implementations
impl RefUnwindSafe for UniqueEntities
impl Send for UniqueEntities
impl Sync for UniqueEntities
impl Unpin for UniqueEntities
impl UnwindSafe for UniqueEntities
Blanket Implementations
impl<T> DowncastSync for T where
T: Any + Send + Sync,
[src]
impl<T> DowncastSync for T where
T: Any + Send + Sync,
[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> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,