Struct sid::IdSlice
[−]
[src]
pub struct IdSlice<'l, ID: Identifier, Data> where
Data: 'l, { /* fields omitted */ }
Methods
impl<'l, Data, ID: Identifier> IdSlice<'l, ID, Data> where
Data: 'l,
[src]
Data: 'l,
fn new(slice: &'l [Data]) -> IdSlice<'l, ID, Data>
fn len(&self) -> ID::Handle
fn as_slice<'a>(&'a self) -> &'a [Data]
fn iter<'a>(&'a self) -> Iter<'a, Data>
fn ids(&self) -> IdRange<ID::Tag, ID::Handle>
fn nth(&self, idx: usize) -> &Data
Trait Implementations
impl<'l, Data, ID: Identifier> Copy for IdSlice<'l, ID, Data> where
Data: 'l,
[src]
Data: 'l,
impl<'l, Data, ID: Identifier> Clone for IdSlice<'l, ID, Data> where
Data: 'l,
[src]
Data: 'l,
fn clone(&self) -> IdSlice<'l, ID, Data>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl<'l, ID: Identifier, Data> Index<ID> for IdSlice<'l, ID, Data> where
Data: 'l,
[src]
Data: 'l,
type Output = Data
The returned type after indexing
fn index<'a>(&'a self, id: ID) -> &'a Data
The method for the indexing (container[index]
) operation