Struct rs_graph::attributed::GraphAttrs
[−]
[src]
pub struct GraphAttrs<'a, G, Gx, Nx, Ex, Ax> where
G: 'a + Graph<'a>,
Gx: 'a,
Nx: 'a,
Ex: 'a,
Ax: 'a, { /* fields omitted */ }
Accessor for graph attributes.
Trait Implementations
impl<'a, G, Gx, Nx, Ex, Ax> Attributes for GraphAttrs<'a, G, Gx, Nx, Ex, Ax> where
G: IndexGraph<'a>,
[src]
G: IndexGraph<'a>,
type Node = G::Node
Type of nodes of the associated graph.
type Edge = G::Edge
Type of edges of the associated graph.
type GraphAttr = Gx
Type of graph attributes.
type NodeAttr = Nx
Type of node attributes.
type EdgeAttr = Ex
Type of edge attributes.
fn attr(&self) -> &Self::GraphAttr
[src]
Return the graph attributes.
fn attr_mut(&mut self) -> &mut Self::GraphAttr
[src]
Return the graph attributes.
fn node(&self, u: Self::Node) -> &Self::NodeAttr
[src]
Return the attributes of a node.
fn node_mut(&mut self, u: Self::Node) -> &mut Self::NodeAttr
[src]
Return the attributes of a node.
fn edge(&self, e: Self::Edge) -> &Self::EdgeAttr
[src]
Return the attributes of an edge.
fn edge_mut(&mut self, e: Self::Edge) -> &mut Self::EdgeAttr
[src]
Return the attributes of an edge.
impl<'a, G, Gx, Nx, Ex, Ax> Deref for GraphAttrs<'a, G, Gx, Nx, Ex, Ax> where
G: IndexGraph<'a>,
[src]
G: IndexGraph<'a>,
type Target = Gx
The resulting type after dereferencing.
fn deref(&self) -> &Gx
[src]
Dereferences the value.
impl<'a, G, Gx, Nx, Ex, Ax> DerefMut for GraphAttrs<'a, G, Gx, Nx, Ex, Ax> where
G: IndexGraph<'a>,
[src]
G: IndexGraph<'a>,
impl<'a, G, Gx, Nx, Ex, Ax> NetworkAttributes for GraphAttrs<'a, G, Gx, Nx, Ex, Ax> where
G: IndexNetwork<'a>,
[src]
G: IndexNetwork<'a>,
type BiEdgeAttr = Ax
Type of biedge attributes.
fn biedge(&self, e: Self::Edge) -> &Self::BiEdgeAttr
[src]
Return the attributes of a biedge.
fn biedge_mut(&mut self, e: Self::Edge) -> &mut Self::BiEdgeAttr
[src]
Return the attributes of a biedge.