Struct depends::Dependency
source · pub struct Dependency<T> { /* private fields */ }
Expand description
Wraps a dependency and tracks the hashed value each time it’s resolved. This allows the resolver to know if a dependency is ‘dirty’ from the perspective of the Dependee.
Implementations§
Trait Implementations§
source§impl<T: Debug> Debug for Dependency<T>
impl<T: Debug> Debug for Dependency<T>
source§impl<T> Resolve for Dependency<T>
impl<T> Resolve for Dependency<T>
type Output<'a> = DepRef<'a, <T as Resolve>::Output<'a>> where Self: 'a
source§fn resolve(&self, visitor: &mut impl Visitor) -> ResolveResult<Self::Output<'_>>
fn resolve(&self, visitor: &mut impl Visitor) -> ResolveResult<Self::Output<'_>>
You’re probably looking for resolve_root. This is
recursively called on each node when a graph is being resolved. Read more
source§fn resolve_root(
&self,
visitor: &mut impl Visitor
) -> ResolveResult<Self::Output<'_>>
fn resolve_root( &self, visitor: &mut impl Visitor ) -> ResolveResult<Self::Output<'_>>
Pass a Visitor through this node, resolve the latest version of all
dependencies, reset the visitor and return this node’s output.
Auto Trait Implementations§
impl<T> !RefUnwindSafe for Dependency<T>
impl<T> Send for Dependency<T>where
T: Send,
impl<T> !Sync for Dependency<T>
impl<T> Unpin for Dependency<T>where
T: Unpin,
impl<T> UnwindSafe for Dependency<T>where
T: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more