pub struct OutputContext<'graph, C = (), O = ()> { /* private fields */ }Expand description
Read-only context passed to materialized output computations.
Implementations§
Source§impl<'graph, C, O> OutputContext<'graph, C, O>
impl<'graph, C, O> OutputContext<'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 scalar derived dependency.
Sourcepub fn map_collection<K, V>(
&self,
collection: CollectionNode<K, V>,
) -> Result<&'graph BTreeMap<K, V>, DeriveError>
pub fn map_collection<K, V>( &self, collection: CollectionNode<K, V>, ) -> Result<&'graph BTreeMap<K, V>, DeriveError>
Reads a declared map collection dependency.
Sourcepub fn set_collection<K>(
&self,
collection: CollectionNode<K, ()>,
) -> Result<&'graph BTreeSet<K>, DeriveError>
pub fn set_collection<K>( &self, collection: CollectionNode<K, ()>, ) -> Result<&'graph BTreeSet<K>, DeriveError>
Reads a declared set collection dependency.
Auto Trait Implementations§
impl<'graph, C = (), O = ()> !RefUnwindSafe for OutputContext<'graph, C, O>
impl<'graph, C = (), O = ()> !UnwindSafe for OutputContext<'graph, C, O>
impl<'graph, C, O> Freeze for OutputContext<'graph, C, O>
impl<'graph, C, O> Send for OutputContext<'graph, C, O>where
O: Sync,
impl<'graph, C, O> Sync for OutputContext<'graph, C, O>where
O: Sync,
impl<'graph, C, O> Unpin for OutputContext<'graph, C, O>
impl<'graph, C, O> UnsafeUnpin for OutputContext<'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