pub trait OutgoingGraph: TopologyBase {
type OutEdges<'view>: Iterator<Item = Self::RelationId>
where Self: 'view;
// Required method
fn outgoing_edges(&self, node: Self::ElementId) -> Self::OutEdges<'_>;
}Expand description
Capability for traversing outgoing edges from a source node.
The generic associated iterator type lets each backend return its own concrete iterator without allocation or dynamic dispatch.
Required Associated Types§
Sourcetype OutEdges<'view>: Iterator<Item = Self::RelationId>
where
Self: 'view
type OutEdges<'view>: Iterator<Item = Self::RelationId> where Self: 'view
Iterator over edge IDs leaving one source node.
Required Methods§
Sourcefn outgoing_edges(&self, node: Self::ElementId) -> Self::OutEdges<'_>
fn outgoing_edges(&self, node: Self::ElementId) -> Self::OutEdges<'_>
Returns edges whose source is node.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".