Trait rs_graph::wrapped::WrappedGraph
[−]
[src]
pub trait WrappedGraph {
type Graph;
fn from_graph(g: Self::Graph) -> Self;
fn as_graph(&self) -> &Self::Graph;
}An embedded graph.
This trait is similar to the combination From<G> + Deref<Target=G> but specialized for graphs.
Associated Types
type Graph
The embedded graph type.
Required Methods
fn from_graph(g: Self::Graph) -> Self
Create the embedding structure from a graph.
fn as_graph(&self) -> &Self::Graph
Return a reference to the embedded graph.