Skip to main content

Dfs

Struct Dfs 

Source
pub struct Dfs<I, M> {
    pub trace: Trace<I>,
    /* private fields */
}
Expand description

An Evaluator that visits modules in DFS order.

Fields§

§trace: Trace<I>

Module trace.

Implementations§

Source§

impl<I, M> Dfs<I, M>

Source

pub const fn new() -> Self

Create a new Dfs evaluator.

Trait Implementations§

Source§

impl<I: Debug, M: Debug> Debug for Dfs<I, M>

Source§

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

Formats the value using the given formatter. Read more
Source§

impl<I, M> Default for Dfs<I, M>

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<I, M> Evaluator for Dfs<I, M>
where M: Merge,

Source§

type Id = I

Id of a module. Read more
Source§

type Module = M

The type of the module.
Source§

type Error = Error

Evaluation error.
Source§

fn is_empty(&self) -> bool

Check whether the evaluator has evaluated any modules.
Source§

fn next(&mut self) -> Option<Self::Id>

Get the next module in evaluation order. Read more
Source§

fn eval( &mut self, id: Self::Id, imports: Imports<Self::Id>, module: Self::Module, ) -> Result<(), Self::Error>

Evaluate module identified by id that imports the modules specified by imports.
Source§

fn finish(self) -> Option<Self::Module>

Destruct the evaluator and get the final value. Read more

Auto Trait Implementations§

§

impl<I, M> Freeze for Dfs<I, M>
where M: Freeze,

§

impl<I, M> RefUnwindSafe for Dfs<I, M>

§

impl<I, M> Send for Dfs<I, M>
where M: Send, I: Send,

§

impl<I, M> Sync for Dfs<I, M>
where M: Sync, I: Sync,

§

impl<I, M> Unpin for Dfs<I, M>
where M: Unpin, I: Unpin,

§

impl<I, M> UnsafeUnpin for Dfs<I, M>
where M: UnsafeUnpin,

§

impl<I, M> UnwindSafe for Dfs<I, M>

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.