pub trait PortIterator<P>: Iterator<Item = (Node, P)>{
// Provided methods
fn dataflow_ports_only(
self,
hugr: &impl HugrView<Node = Node>,
) -> impl Iterator<Item = (Node, P)> { ... }
fn filter_edge_kind(
self,
predicate: impl Fn(Option<EdgeKind>) -> bool,
hugr: &impl HugrView<Node = Node>,
) -> impl Iterator<Item = (Node, P)> { ... }
}
Expand description
Trait implementing methods on port iterators.
Provided 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.