pub trait Neighbor<'a>: Hypergraph<'a> + Sized {
// Provided methods
fn get_neighbors(&'a self) -> AdjacencyList<'a, Self> { ... }
fn neighbors(
&'a self,
adj: &AdjacencyList<'a, Self>,
node: &Self::Node,
) -> impl Iterator<Item = &'a Self::Node> { ... }
}
Provided Methods§
fn get_neighbors(&'a self) -> AdjacencyList<'a, Self>
fn neighbors( &'a self, adj: &AdjacencyList<'a, Self>, node: &Self::Node, ) -> impl Iterator<Item = &'a Self::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.