pub trait SwhForwardGraph: SwhGraph {
type Successors<'succ>: IntoIterator<Item = usize>
where Self: 'succ;
// Required methods
fn successors(&self, node_id: NodeId) -> Self::Successors<'_>;
fn outdegree(&self, node_id: NodeId) -> usize;
}
Required Associated Types§
type Successors<'succ>: IntoIterator<Item = usize> where Self: 'succ
Required Methods§
Sourcefn successors(&self, node_id: NodeId) -> Self::Successors<'_>
fn successors(&self, node_id: NodeId) -> Self::Successors<'_>
Return an IntoIterator
over the successors of a node.
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.