Struct indexing::Index [] [src]

pub struct Index<'id> {
    // some fields omitted
}

A branded index.

Index<'id> only indexes the container instantiated with the exact same particular lifetime for the parameter 'id at its inception from the indices() constructor.

Methods

impl<'id> Index<'id>
[src]

fn integer(&self) -> usize

Trait Implementations

impl<'id> PartialOrd for Index<'id>
[src]

fn partial_cmp(&self, __arg_0: &Index<'id>) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more

fn lt(&self, __arg_0: &Index<'id>) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more

fn le(&self, __arg_0: &Index<'id>) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

fn gt(&self, __arg_0: &Index<'id>) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more

fn ge(&self, __arg_0: &Index<'id>) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl<'id> Eq for Index<'id>
[src]

impl<'id> Clone for Index<'id>
[src]

fn clone(&self) -> Index<'id>

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<'id> Copy for Index<'id>
[src]

impl<'id> Debug for Index<'id>
[src]

fn fmt(&self, f: &mut Formatter) -> Result

Formats the value using the given formatter.

impl<'id> PartialEq for Index<'id>
[src]

Index can only be compared with other indices of the same branding

fn eq(&self, other: &Index<'id>) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, other: &Rhs) -> bool
1.0.0

This method tests for !=.