Struct rinecs::UniqueEntities [−][src]
pub struct UniqueEntities(_);
Implementations
impl UniqueEntities
[src]
impl UniqueEntities
[src]pub fn try_new(entities: Vec<Entity>) -> Option<Self>
[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>) -> Self
[src]
pub fn with_capacity(capacity: usize) -> Self
[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>
[src]
Trait Implementations
impl Clone for UniqueEntities
[src]
impl Clone for UniqueEntities
[src]fn clone(&self) -> UniqueEntities
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Default for UniqueEntities
[src]
impl Default for UniqueEntities
[src]fn default() -> UniqueEntities
[src]
impl<'de> Deserialize<'de> for UniqueEntities
[src]
impl<'de> Deserialize<'de> for UniqueEntities
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__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>
fn storage_entities_iter(self, storage: Option<S>) -> Self::IntoEntitiesIter where
S: ReadOnlyStorage,
[src]
S: ReadOnlyStorage,
fn storage_entities_iter_mut(
self,
storage: Option<S>
) -> Self::IntoEntitiesIterMut
[src]
self,
storage: Option<S>
) -> Self::IntoEntitiesIterMut
fn storage_entities_opt_iter(
self,
storage: Option<S>
) -> Self::IntoEntitiesOptIter where
S: ReadOnlyStorage,
[src]
self,
storage: Option<S>
) -> Self::IntoEntitiesOptIter where
S: ReadOnlyStorage,
fn storage_entities_opt_iter_mut(
self,
storage: Option<S>
) -> Self::IntoEntitiesOptIterMut
[src]
self,
storage: Option<S>
) -> Self::IntoEntitiesOptIterMut
impl IntoIterator for UniqueEntities
[src]
impl IntoIterator for UniqueEntities
[src]impl<'a> IntoIterator for &'a UniqueEntities
[src]
impl<'a> IntoIterator for &'a UniqueEntities
[src]impl<'a> IntoIterator for &'a mut UniqueEntities
[src]
impl<'a> IntoIterator for &'a mut UniqueEntities
[src]impl Serialize for UniqueEntities
[src]
impl Serialize for UniqueEntities
[src]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> 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>,