[][src]Struct sid::MutIdSlice

pub struct MutIdSlice<'l, ID: Identifier, T: 'l> { /* fields omitted */ }

Methods

impl<'l, ID: Identifier, T: 'l> MutIdSlice<'l, ID, T>[src]

pub fn new(slice: &'l mut [T]) -> MutIdSlice<'l, ID, T>[src]

pub fn len(&self) -> ID::Handle[src]

pub fn untyped(&mut self) -> &mut [T][src]

pub fn iter<'a>(&'a self) -> Iter<'a, T>[src]

pub fn iter_mut<'a>(&'a mut self) -> IterMut<'a, T>[src]

Important traits for IdRange<T, H>
pub fn ids(&self) -> IdRange<ID::Tag, ID::Handle>[src]

pub fn nth(&mut self, idx: ID::Handle) -> &mut T[src]

pub fn first(&mut self) -> Option<&mut T>[src]

pub fn last(&mut self) -> Option<&mut T>[src]

pub fn range(&mut self, ids: IdRange<ID::Tag, ID::Handle>) -> MutIdSlice<ID, T>[src]

pub fn range_from(&mut self, id: ID) -> MutIdSlice<ID, T>[src]

pub fn range_to(&mut self, id: ID) -> MutIdSlice<ID, T>[src]

pub fn range_to_inclusive(&mut self, id: ID) -> MutIdSlice<ID, T>[src]

Trait Implementations

impl<'l, ID: Identifier, T: 'l> Index<ID> for MutIdSlice<'l, ID, T>[src]

type Output = T

The returned type after indexing.

impl<'l, ID: Identifier, T: 'l> IndexMut<ID> for MutIdSlice<'l, ID, T>[src]

impl<'l, ID: Identifier, T: 'l> IntoIterator for MutIdSlice<'l, ID, T>[src]

type Item = &'l mut T

The type of the elements being iterated over.

type IntoIter = IterMut<'l, T>

Which kind of iterator are we turning this into?

Auto Trait Implementations

impl<'l, ID, T> Unpin for MutIdSlice<'l, ID, T> where
    ID: Unpin

impl<'l, ID, T> Send for MutIdSlice<'l, ID, T> where
    ID: Send,
    T: Send

impl<'l, ID, T> Sync for MutIdSlice<'l, ID, T> where
    ID: Sync,
    T: Sync

Blanket Implementations

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

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> Into<U> for T where
    U: From<T>, 
[src]

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<I> IntoIterator for I where
    I: Iterator
[src]

type Item = <I as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = I

Which kind of iterator are we turning this into?

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

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]