[][src]Trait petgraph::visit::NodeRef

pub trait NodeRef: Copy {
    type NodeId;
    type Weight;
    fn id(&self) -> Self::NodeId;
fn weight(&self) -> &Self::Weight; }

A node reference.

Associated Types

type NodeId

type Weight

Loading content...

Required methods

fn id(&self) -> Self::NodeId

fn weight(&self) -> &Self::Weight

Loading content...

Implementations on Foreign Types

impl<Id> NodeRef for (Id, ()) where
    Id: Copy
[src]

type NodeId = Id

type Weight = ()

impl<'a, Id, W> NodeRef for (Id, &'a W) where
    Id: Copy
[src]

type NodeId = Id

type Weight = W

Loading content...

Implementors

Loading content...