Skip to main content

DependencyStep

Struct DependencyStep 

Source
pub struct DependencyStep<C, R> {
    pub cell: C,
    pub previous: Option<(usize, DependencyHop<R>)>,
}
Expand description

One cell and its optional incoming edge in a projection’s shared path forest.

§Examples

See DependencyGraph::project.

Fields§

§cell: C

The cell reached by this step.

§previous: Option<(usize, DependencyHop<R>)>

The preceding step index and incoming hop, or None at a path root.

Trait Implementations§

Source§

impl<C: Debug, R: Debug> Debug for DependencyStep<C, R>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<C, R> Freeze for DependencyStep<C, R>
where C: Freeze, R: Freeze,

§

impl<C, R> RefUnwindSafe for DependencyStep<C, R>

§

impl<C, R> Send for DependencyStep<C, R>
where C: Send, R: Send,

§

impl<C, R> Sync for DependencyStep<C, R>
where C: Sync, R: Sync,

§

impl<C, R> Unpin for DependencyStep<C, R>
where C: Unpin, R: Unpin,

§

impl<C, R> UnsafeUnpin for DependencyStep<C, R>
where C: UnsafeUnpin, R: UnsafeUnpin,

§

impl<C, R> UnwindSafe for DependencyStep<C, R>
where C: UnwindSafe, R: 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 = !

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

fn try_from(value: U) -> Result<T, !>

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.