pub trait UndirectedRef<'a>: GraphTypeRef<'a> {
type NeighIt: GraphIterator<Self, Item = (Self::Edge, Self::Node)>;
// Required method
fn neigh_iter(&self, u: Self::Node) -> Self::NeighIt;
// Provided method
fn neighs(&self, u: Self::Node) -> GraphIter<'_, Self, Self::NeighIt> ⓘ
where Self: Sized { ... }
}
Expand description
A reference to an undirected graph.
This trait contains methods with a unrestricted lifetime for self
.
Required Associated Types§
Sourcetype NeighIt: GraphIterator<Self, Item = (Self::Edge, Self::Node)>
type NeighIt: GraphIterator<Self, Item = (Self::Edge, Self::Node)>
Type of a graph iterator over all incident edges.
Required Methods§
Sourcefn neigh_iter(&self, u: Self::Node) -> Self::NeighIt
fn neigh_iter(&self, u: Self::Node) -> Self::NeighIt
Return a graph iterator over the edges adjacent to some node.
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.