pub trait GraphNodesEnumerableInterface: GraphNodesNominalInterface {
// Required method
fn nodes<'a, 'b>(
&'a self,
) -> Box<dyn Iterator<Item = (<Self::NodeHandle as HasId>::Id, &'a Self::NodeHandle)> + 'b>
where 'a: 'b;
// Provided method
fn nnodes(&self) -> usize { ... }
}
Expand description
Graph nodes of which is possible to enumerate.
Required Methods§
Sourcefn nodes<'a, 'b>(
&'a self,
) -> Box<dyn Iterator<Item = (<Self::NodeHandle as HasId>::Id, &'a Self::NodeHandle)> + 'b>where
'a: 'b,
fn nodes<'a, 'b>(
&'a self,
) -> Box<dyn Iterator<Item = (<Self::NodeHandle as HasId>::Id, &'a Self::NodeHandle)> + 'b>where
'a: 'b,
Iterate over all nodes.
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.