pub struct DeriveContext<'graph, C = (), O = ()> { /* private fields */ }Expand description
Read-only context passed to pure derived node computations.
Implementations§
Source§impl<'graph, C, O> DeriveContext<'graph, C, O>
impl<'graph, C, O> DeriveContext<'graph, C, O>
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 = (), O = ()> !RefUnwindSafe for DeriveContext<'graph, C, O>
impl<'graph, C = (), O = ()> !Send for DeriveContext<'graph, C, O>
impl<'graph, C = (), O = ()> !Sync for DeriveContext<'graph, C, O>
impl<'graph, C = (), O = ()> !UnwindSafe for DeriveContext<'graph, C, O>
impl<'graph, C, O> Freeze for DeriveContext<'graph, C, O>
impl<'graph, C, O> Unpin for DeriveContext<'graph, C, O>
impl<'graph, C, O> UnsafeUnpin for DeriveContext<'graph, C, O>
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