Struct rs_graph::vec::ItemVec[][src]

pub struct ItemVec<T, Idx>(_, _);

New type wrapper around Vec<T> to be indexed by nodes and edges.

This thin wrapper allows Vec<T> to be used an NodeMap or EdgeMap for implementors of NumberedGraph directly.

Methods

impl<T, Idx> ItemVec<T, Idx>
[src]

Trait Implementations

impl<T: Debug, Idx: Debug> Debug for ItemVec<T, Idx>
[src]

Formats the value using the given formatter. Read more

impl<T: Clone, Idx: Clone> Clone for ItemVec<T, Idx>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<T: PartialEq, Idx: PartialEq> PartialEq for ItemVec<T, Idx>
[src]

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

This method tests for !=.

impl<T: Eq, Idx: Eq> Eq for ItemVec<T, Idx>
[src]

impl<T: PartialOrd, Idx: PartialOrd> PartialOrd for ItemVec<T, Idx>
[src]

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

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

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

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

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

impl<T: Ord, Idx: Ord> Ord for ItemVec<T, Idx>
[src]

This method returns an Ordering between self and other. Read more

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

impl<T, Idx> From<Vec<T>> for ItemVec<T, Idx>
[src]

Performs the conversion.

impl<T, Idx> Deref for ItemVec<T, Idx>
[src]

The resulting type after dereferencing.

Dereferences the value.

impl<T, Idx> DerefMut for ItemVec<T, Idx>
[src]

Mutably dereferences the value.

impl<T, I, Idx> Index<I> for ItemVec<T, Idx> where
    Idx: NumberedIndexer<I>, 
[src]

The returned type after indexing.

Performs the indexing (container[index]) operation.

impl<T, I, Idx> IndexMut<I> for ItemVec<T, Idx> where
    Idx: NumberedIndexer<I>, 
[src]

Performs the mutable indexing (container[index]) operation.

impl<'a, T, I, Idx> Index<I> for &'a ItemVec<T, Idx> where
    Idx: NumberedIndexer<I>, 
[src]

The returned type after indexing.

Performs the indexing (container[index]) operation.

impl<'a, T, I, Idx> Index<I> for &'a mut ItemVec<T, Idx> where
    Idx: NumberedIndexer<I>, 
[src]

The returned type after indexing.

Performs the indexing (container[index]) operation.

impl<'a, T, I, Idx> IndexMut<I> for &'a mut ItemVec<T, Idx> where
    Idx: NumberedIndexer<I>, 
[src]

Performs the mutable indexing (container[index]) operation.

Auto Trait Implementations

impl<T, Idx> Send for ItemVec<T, Idx> where
    Idx: Send,
    T: Send

impl<T, Idx> Sync for ItemVec<T, Idx> where
    Idx: Sync,
    T: Sync