pub struct DeriveContext<'graph, C = ()> { /* private fields */ }Expand description
Read-only context passed to pure derived node computations.
Implementations§
Source§impl<'graph, C> DeriveContext<'graph, C>
impl<'graph, C> DeriveContext<'graph, C>
Sourcepub fn input<T>(&self, input: InputNode<T>) -> Result<&'graph T, DeriveError>
pub fn input<T>(&self, input: InputNode<T>) -> Result<&'graph T, DeriveError>
Reads a declared input dependency.
Sourcepub fn derived<T>(
&self,
derived: DerivedNode<T>,
) -> Result<&'graph T, DeriveError>
pub fn derived<T>( &self, derived: DerivedNode<T>, ) -> Result<&'graph T, DeriveError>
Reads a declared derived dependency.
Auto Trait Implementations§
impl<'graph, C = ()> !RefUnwindSafe for DeriveContext<'graph, C>
impl<'graph, C = ()> !UnwindSafe for DeriveContext<'graph, C>
impl<'graph, C> Freeze for DeriveContext<'graph, C>
impl<'graph, C> Send for DeriveContext<'graph, C>
impl<'graph, C> Sync for DeriveContext<'graph, C>
impl<'graph, C> Unpin for DeriveContext<'graph, C>
impl<'graph, C> UnsafeUnpin for DeriveContext<'graph, C>
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