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