Struct petgraph::graph::Frozen [] [src]

pub struct Frozen<'a, G: 'a>(_);

Frozen only allows shared access (read-only) to the underlying graph G, but it allows mutable access to its node and edge weights.

This is used to ensure immutability of the graph's structure while permitting weights to change.

Methods

impl<'a, G> Frozen<'a, G>
[src]

impl<'a, N, E, Ty, Ix> Frozen<'a, Graph<N, E, Ty, Ix>> where Ty: EdgeType, Ix: IndexType
[src]

Trait Implementations

impl<'a, G> Deref for Frozen<'a, G>
[src]

The resulting type after dereferencing

The method called to dereference a value

impl<'a, G, I> Index<I> for Frozen<'a, G> where G: Index<I>
[src]

The returned type after indexing

The method for the indexing (Foo[Bar]) operation

impl<'a, G, I> IndexMut<I> for Frozen<'a, G> where G: IndexMut<I>
[src]

The method for the indexing (Foo[Bar]) operation

impl<'a, G> GraphBase for Frozen<'a, G> where G: GraphBase
[src]

impl<'a, 'b, G> IntoNeighbors for &'b Frozen<'a, G> where &'b G: IntoNeighbors, G: GraphBase<NodeId=&'b G::NodeId>
[src]

impl<'a, G> Visitable for Frozen<'a, G> where G: Visitable
[src]

Reset the visitor map (and resize to new size of graph if needed)