NodesIter

Trait NodesIter 

Source
pub trait NodesIter {
    type Node;

    // Required method
    fn nodes(&self) -> impl Iterator<Item = Self::Node> + '_;
}
Expand description

Iterate over nodes within a graph view (Hugr, SiblingSubgraph, etc).

Required Associated Types§

Source

type Node

The type of nodes in the graph.

Required Methods§

Source

fn nodes(&self) -> impl Iterator<Item = Self::Node> + '_

Iterate over the nodes in the graph.

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.

Implementors§