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>
[src]
fn iter_mut(&mut self) -> IterMut<T>
[src]
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> Debug for GraphSliceMut<'a, 'b, G, Idx, T> where
G: 'a,
Idx: GraphIndexer<Graph = G>,
T: 'b + Debug,
[src]
G: 'a,
Idx: GraphIndexer<Graph = G>,
T: 'b + Debug,
fn fmt(&self, fmt: &mut Formatter) -> Result<(), Error>
[src]
Formats the value using the given formatter.
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
[src]
Dereferences the 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
[src]
Performs 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>,