Parents

Struct Parents 

Source
pub struct Parents<N, E, Ix: IndexType> { /* private fields */ }
Expand description

A Walker type that can be used to step through the parents of some child node.

Trait Implementations§

Source§

impl<'a, N, E, Ix> Walker<&'a Dag<N, E, Ix>> for Parents<N, E, Ix>
where Ix: IndexType,

Source§

type Item = (EdgeIndex<Ix>, NodeIndex<Ix>)

Source§

fn walk_next(&mut self, dag: &'a Dag<N, E, Ix>) -> Option<Self::Item>

Advance to the next item
Source§

fn iter(self, context: Context) -> WalkerIter<Self, Context>
where Self: Sized, Context: Clone,

Create an iterator out of the walker and given context.

Auto Trait Implementations§

§

impl<N, E, Ix> Freeze for Parents<N, E, Ix>
where Ix: Freeze,

§

impl<N, E, Ix> RefUnwindSafe for Parents<N, E, Ix>

§

impl<N, E, Ix> Send for Parents<N, E, Ix>
where N: Send, E: Send, Ix: Send,

§

impl<N, E, Ix> Sync for Parents<N, E, Ix>
where N: Sync, E: Sync, Ix: Sync,

§

impl<N, E, Ix> Unpin for Parents<N, E, Ix>
where N: Unpin, E: Unpin, Ix: Unpin,

§

impl<N, E, Ix> UnwindSafe for Parents<N, E, Ix>
where N: UnwindSafe, E: UnwindSafe, Ix: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.