Struct rin::ecs::UniqueEntities[][src]

pub struct UniqueEntities(_);

Implementations

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]

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>

Notable traits for Vec<u8, A>

impl<A> Write for Vec<u8, A> where
    A: Allocator
[src]

Trait Implementations

impl Clone for UniqueEntities[src]

impl Debug for UniqueEntities[src]

impl Default for UniqueEntities[src]

impl<'de> Deserialize<'de> for UniqueEntities[src]

impl Index<usize> for UniqueEntities[src]

type Output = Entity

The returned type after indexing.

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>

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?

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?

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?

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> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Any for T where
    T: Any
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Downcast for T where
    T: Any
[src]

impl<T> DowncastSync for T where
    T: Any + Send + Sync
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<V> IntoPnt<V> for V[src]

impl<V> IntoVec<V> for V[src]

impl<T> Pointable for T[src]

type Init = T

The type for initializers.

impl<T> Same<T> for T[src]

type Output = T

Should always be Self

impl<T> Serialize for T where
    T: Serialize + ?Sized
[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]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]