pub trait PortIterator<P>: Iterator<Item = (Node, P)>{
// Provided methods
fn dataflow_ports_only(
self,
hugr: &impl HugrView,
) -> impl Iterator<Item = (Node, P)> { ... }
fn filter_edge_kind(
self,
predicate: impl Fn(Option<EdgeKind>) -> bool,
hugr: &impl HugrView,
) -> impl Iterator<Item = (Node, P)> { ... }
}
Expand description
Trait implementing methods on port iterators.
Provided Methods§
Sourcefn dataflow_ports_only(
self,
hugr: &impl HugrView,
) -> impl Iterator<Item = (Node, P)>
fn dataflow_ports_only( self, hugr: &impl HugrView, ) -> impl Iterator<Item = (Node, P)>
Filter an iterator of node-ports to only dataflow dependency specifying ports (Value and StateOrder)
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.