Trait AdjacenciesWithValue

Source
pub trait AdjacenciesWithValue<T>: GraphBase
where T: Clone,
{ type AIndex: AdjacencyIndexWithValue<VIndex = Self::VIndex, AValue = T>; type AIter<'g>: Iterator<Item = Self::AIndex> where Self: 'g; // Required method fn adjacencies_with_value(&self, vid: Self::VIndex) -> Self::AIter<'_>; }

Required Associated Types§

Source

type AIndex: AdjacencyIndexWithValue<VIndex = Self::VIndex, AValue = T>

Source

type AIter<'g>: Iterator<Item = Self::AIndex> where Self: 'g

Required Methods§

Source

fn adjacencies_with_value(&self, vid: Self::VIndex) -> Self::AIter<'_>

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.

Implementors§

Source§

impl<Fa, I, T> AdjacenciesWithValue<T> for UsizeGraph<Fa>
where I: Iterator<Item = (usize, T)>, Fa: Fn(usize) -> I, T: Clone,

Source§

type AIndex = VIndexWithValue<usize, T>

Source§

type AIter<'g> = Map<I, fn((usize, T)) -> VIndexWithValue<usize, T>> where Fa: 'g

Source§

impl<V, Fv, Fa, Ia, T> AdjacenciesWithValue<T> for ClosureGraph<V, Fv, Fa>
where V: Eq + Copy, Ia: Iterator<Item = (V, T)>, Fa: Fn(V) -> Ia, T: Clone,

Source§

type AIndex = VIndexWithValue<V, T>

Source§

type AIter<'g> = Map<Ia, fn((V, T)) -> VIndexWithValue<V, T>> where V: 'g, Fv: 'g, Fa: 'g