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; }
👎 Deprecated since 0.17.0:

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]

👎 Deprecated since 0.17.0:

use rs-graph-derive crate instead

Type of nodes of the associated graph.

type Edge: Copy + Eq[src]

👎 Deprecated since 0.17.0:

use rs-graph-derive crate instead

Type of edges of the associated graph.

type GraphAttr[src]

👎 Deprecated since 0.17.0:

use rs-graph-derive crate instead

Type of graph attributes.

type NodeAttr[src]

👎 Deprecated since 0.17.0:

use rs-graph-derive crate instead

Type of node attributes.

type EdgeAttr[src]

👎 Deprecated since 0.17.0:

use rs-graph-derive crate instead

Type of edge attributes.

Loading content...

Required methods

fn attr(&self) -> &Self::GraphAttr[src]

👎 Deprecated since 0.17.0:

use rs-graph-derive crate instead

Return the graph attributes.

fn attr_mut(&mut self) -> &mut Self::GraphAttr[src]

👎 Deprecated since 0.17.0:

use rs-graph-derive crate instead

Return the graph attributes.

fn node(&self, u: Self::Node) -> &Self::NodeAttr[src]

👎 Deprecated since 0.17.0:

use rs-graph-derive crate instead

Return the attributes of a node.

fn node_mut(&mut self, u: Self::Node) -> &mut Self::NodeAttr[src]

👎 Deprecated since 0.17.0:

use rs-graph-derive crate instead

Return the attributes of a node.

fn edge(&self, e: Self::Edge) -> &Self::EdgeAttr[src]

👎 Deprecated since 0.17.0:

use rs-graph-derive crate instead

Return the attributes of an edge.

fn edge_mut(&mut self, e: Self::Edge) -> &mut Self::EdgeAttr[src]

👎 Deprecated since 0.17.0:

use rs-graph-derive crate instead

Return the attributes of an edge.

Loading content...

Implementors

impl<'a, G, Gx, Nx, Ex> Attributes for GraphAttrs<'a, G, Gx, Nx, Ex> where
    G: IndexGraph<'a>, 
[src]

type Node = G::Node

👎 Deprecated since 0.17.0:

use rs-graph-derive crate instead

type Edge = G::Edge

👎 Deprecated since 0.17.0:

use rs-graph-derive crate instead

type GraphAttr = Gx

👎 Deprecated since 0.17.0:

use rs-graph-derive crate instead

type NodeAttr = Nx

👎 Deprecated since 0.17.0:

use rs-graph-derive crate instead

type EdgeAttr = Ex

👎 Deprecated since 0.17.0:

use rs-graph-derive crate instead

Loading content...