Trait rs_graph::attributed::Attributes[][src]

pub trait Attributes {
    type Node: Node;
    type Edge: Edge;
    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; }

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 of nodes of the associated graph.

Type of edges of the associated graph.

Type of graph attributes.

Type of node attributes.

Type of edge attributes.

Required Methods

Return the graph attributes.

Return the graph attributes.

Return the attributes of a node.

Return the attributes of a node.

Return the attributes of an edge.

Return the attributes of an edge.

Implementors