Trait rs_graph::attributed::Attributes [−][src]
pub trait Attributes {
type Node: Copy + Eq;
type Edge: Copy + Eq;
type GraphAttr;
type NodeAttr;
type EdgeAttr;
fn attr(&self) -> &Self::GraphAttr;
fn attr_mut(&mut self) -> &mut Self::GraphAttr;
fn node(&self, u: Self::Node) -> &Self::NodeAttr;
fn node_mut(&mut self, u: Self::Node) -> &mut Self::NodeAttr;
fn edge(&self, e: Self::Edge) -> &Self::EdgeAttr;
fn edge_mut(&mut self, e: Self::Edge) -> &mut Self::EdgeAttr;
}use rs-graph-derive crate instead
This trait provides (mutable) access to the attributes of an attributed graph.
A structure implementing this trait is returned as the second
value by the split method of an attributed graph.
Associated Types
type Node: Copy + Eq[src]
use rs-graph-derive crate instead
Type of nodes of the associated graph.
type Edge: Copy + Eq[src]
use rs-graph-derive crate instead
Type of edges of the associated graph.
type GraphAttr[src]
use rs-graph-derive crate instead
Type of graph attributes.
type NodeAttr[src]
use rs-graph-derive crate instead
Type of node attributes.
type EdgeAttr[src]
use rs-graph-derive crate instead
Type of edge attributes.
Required methods
fn attr(&self) -> &Self::GraphAttr[src]
use rs-graph-derive crate instead
Return the graph attributes.
fn attr_mut(&mut self) -> &mut Self::GraphAttr[src]
use rs-graph-derive crate instead
Return the graph attributes.
fn node(&self, u: Self::Node) -> &Self::NodeAttr[src]
use rs-graph-derive crate instead
Return the attributes of a node.
fn node_mut(&mut self, u: Self::Node) -> &mut Self::NodeAttr[src]
use rs-graph-derive crate instead
Return the attributes of a node.
fn edge(&self, e: Self::Edge) -> &Self::EdgeAttr[src]
use rs-graph-derive crate instead
Return the attributes of an edge.
fn edge_mut(&mut self, e: Self::Edge) -> &mut Self::EdgeAttr[src]
use rs-graph-derive crate instead
Return the attributes of an edge.
Implementors
impl<'a, G, Gx, Nx, Ex> Attributes for GraphAttrs<'a, G, Gx, Nx, Ex> where
G: IndexGraph<'a>, [src]
impl<'a, G, Gx, Nx, Ex> Attributes for GraphAttrs<'a, G, Gx, Nx, Ex> where
G: IndexGraph<'a>, [src]type Node = G::Node
use rs-graph-derive crate instead
type Edge = G::Edge
use rs-graph-derive crate instead
type GraphAttr = Gx
use rs-graph-derive crate instead
type NodeAttr = Nx
use rs-graph-derive crate instead
type EdgeAttr = Ex
use rs-graph-derive crate instead