Struct rs_graph::adjacencies::FilterAdjacencies[][src]

pub struct FilterAdjacencies<A, P>(_, _);

Trait Implementations

impl<'a, A, P> Adjacencies<'a> for FilterAdjacencies<A, P> where
    A: Adjacencies<'a>,
    P: 'a + Clone + for<'r> Fn(&'r (A::Edge, A::Node)) -> bool
[src]

type IncidenceIt = Filtered<A::IncidenceIt>

fn neigh_iter(&self, u: Self::Node) -> Self::IncidenceIt[src]

fn neighs<'b>(&'b self, u: Self::Node) -> GraphIter<'b, Self, Self::IncidenceIt>

Notable traits for GraphIter<'a, G, I>

impl<'a, G, I> Iterator for GraphIter<'a, G, I> where
    I: GraphIterator<G>, 
type Item = I::Item;
where
    'a: 'b,
    Self: Sized
[src]

fn filter<P>(self, predicate: P) -> FilterAdjacencies<Self, P> where
    Self: Sized,
    P: for<'r> Fn(&'r (Self::Edge, Self::Node)) -> bool
[src]

impl<A, P, I> GraphIterator<FilterAdjacencies<A, P>> for Filtered<I> where
    I: GraphIterator<A>,
    P: for<'r> Fn(&'r I::Item) -> bool
[src]

type Item = I::Item

fn next(&mut self, adj: &FilterAdjacencies<A, P>) -> Option<Self::Item>[src]

fn size_hint(&self, _g: &G) -> (usize, Option<usize>)[src]

fn count(self, g: &G) -> usize[src]

fn iter<'a>(self, g: &'a G) -> GraphIter<'a, G, Self>

Notable traits for GraphIter<'a, G, I>

impl<'a, G, I> Iterator for GraphIter<'a, G, I> where
    I: GraphIterator<G>, 
type Item = I::Item;
where
    G: Sized
[src]

impl<'a, A, P> GraphType<'a> for FilterAdjacencies<A, P> where
    A: Adjacencies<'a>, 
[src]

type Node = A::Node

Type of a node.

type Edge = A::Edge

Type of an edge.

Auto Trait Implementations

impl<A, P> RefUnwindSafe for FilterAdjacencies<A, P> where
    A: RefUnwindSafe,
    P: RefUnwindSafe

impl<A, P> Send for FilterAdjacencies<A, P> where
    A: Send,
    P: Send

impl<A, P> Sync for FilterAdjacencies<A, P> where
    A: Sync,
    P: Sync

impl<A, P> Unpin for FilterAdjacencies<A, P> where
    A: Unpin,
    P: Unpin

impl<A, P> UnwindSafe for FilterAdjacencies<A, P> where
    A: UnwindSafe,
    P: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.