[][src]Struct sid::IdSlice

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

Methods

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

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

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

pub fn untyped<'a>(&'a self) -> &'a [T][src]

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

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

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

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

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

pub fn first_id(&self) -> Option<ID>[src]

pub fn last_id(&self) -> Option<ID>[src]

pub fn split_at(&self, id: ID) -> (Self, Self)[src]

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

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

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

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

Trait Implementations

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

type Output = T

The returned type after indexing.

impl<'l, T, ID: Identifier> Copy for IdSlice<'l, ID, T> where
    T: 'l, 
[src]

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

type Item = &'l T

The type of the elements being iterated over.

type IntoIter = Iter<'l, T>

Which kind of iterator are we turning this into?

impl<'l, T, ID: Identifier> Clone for IdSlice<'l, ID, T> where
    T: 'l, 
[src]

Auto Trait Implementations

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

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

impl<'l, ID, T> Sync for IdSlice<'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]

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

type Owned = T

The resulting type after obtaining ownership.