Struct rs_graph::vec::GraphSliceMut
[−]
[src]
pub struct GraphSliceMut<'a, 'b, G, Idx, T> where
G: 'a,
Idx: GraphIndexer<Graph = G>,
T: 'b, { /* fields omitted */ }
A mutable borrowed slice indexed by items of a graph.
Methods
impl<'a, 'b, G, Idx, T> GraphSliceMut<'a, 'b, G, Idx, T> where
G: 'a,
Idx: GraphIndexer<Graph = G>,
[src]
G: 'a,
Idx: GraphIndexer<Graph = G>,
fn new(g: &'a G, data: &'b mut [T]) -> GraphSliceMut<'a, 'b, G, Idx, T>
fn iter_mut(&mut self) -> IterMut<T>
Return a mutable iterator over all elements.
Methods from Deref<Target = GraphSliceMut<'a, 'b, G, Idx, T>>
Trait Implementations
impl<'a, 'b, G, Idx, T> Deref for GraphSliceMut<'a, 'b, G, Idx, T> where
G: 'a,
Idx: GraphIndexer<Graph = G>,
[src]
G: 'a,
Idx: GraphIndexer<Graph = G>,
type Target = GraphSliceMut<'a, 'b, G, Idx, T>
The resulting type after dereferencing
fn deref(&self) -> &Self::Target
The method called to dereference a value
impl<'a, 'b, G, Idx, T> Index<Idx::Item> for GraphSliceMut<'a, 'b, G, Idx, T> where
Idx: GraphIndexer<Graph = G>,
[src]
Idx: GraphIndexer<Graph = G>,
type Output = T
The returned type after indexing
fn index(&self, u: Idx::Item) -> &T
The method for the indexing (container[index]
) operation
impl<'a, 'b, G, Idx, T> IndexMut<Idx::Item> for GraphSliceMut<'a, 'b, G, Idx, T> where
Idx: GraphIndexer<Graph = G>,
[src]
Idx: GraphIndexer<Graph = G>,