petgraph::visit

Trait IntoNodeReferences

Source
pub trait IntoNodeReferences: Data + IntoNodeIdentifiers {
    type NodeRef: NodeRef<NodeId = Self::NodeId, Weight = Self::NodeWeight>;
    type NodeReferences: Iterator<Item = Self::NodeRef>;

    // Required method
    fn node_references(self) -> Self::NodeReferences;
}
Expand description

Access to the sequence of the graph’s nodes

Required Associated Types§

Source

type NodeRef: NodeRef<NodeId = Self::NodeId, Weight = Self::NodeWeight>

Source

type NodeReferences: Iterator<Item = Self::NodeRef>

Required Methods§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<'a, G> IntoNodeReferences for &'a G

Implementors§