pub trait Edges {
type NI: Idx;
type EV;
type EdgeIter<'a>: ParallelIterator<Item = (Self::NI, Self::NI, Self::EV)>
where Self: 'a;
// Required method
fn edges(&self) -> Self::EdgeIter<'_>;
// Provided methods
fn max_node_id(&self) -> Self::NI { ... }
fn degrees(
&self,
node_count: Self::NI,
direction: Direction,
) -> Vec<Atomic<Self::NI>> { ... }
}Required Associated Types§
type NI: Idx
type EV
type EdgeIter<'a>: ParallelIterator<Item = (Self::NI, Self::NI, Self::EV)> where Self: 'a
Required Methods§
Provided Methods§
fn max_node_id(&self) -> Self::NI
fn degrees( &self, node_count: Self::NI, direction: Direction, ) -> Vec<Atomic<Self::NI>>
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.