Trait tinychain::scalar::reference::Refer[][src]

pub trait Refer {
    fn requires(&self, deps: &mut HashSet<Id>);
#[must_use] fn resolve<'a, 'async_trait, T: Public + Instance>(
        self,
        context: &'a Scope<'a, T>,
        txn: &'a Txn
    ) -> Pin<Box<dyn Future<Output = TCResult<State>> + Send + 'async_trait>>
    where
        'a: 'async_trait,
        T: 'async_trait,
        Self: 'async_trait
; }

Trait defining dependencies and a resolution method for a TCRef.

Required methods

fn requires(&self, deps: &mut HashSet<Id>)[src]

Add the dependency Ids of this reference to the given set.

#[must_use]fn resolve<'a, 'async_trait, T: Public + Instance>(
    self,
    context: &'a Scope<'a, T>,
    txn: &'a Txn
) -> Pin<Box<dyn Future<Output = TCResult<State>> + Send + 'async_trait>> where
    'a: 'async_trait,
    T: 'async_trait,
    Self: 'async_trait, 
[src]

Resolve this reference with respect to the given context.

Loading content...

Implementors

impl Refer for Scalar[src]

impl Refer for TCRef[src]

impl Refer for OpRef[src]

impl Refer for State[src]

impl Refer for IdRef[src]

impl Refer for After[src]

impl Refer for Case[src]

impl Refer for IfRef[src]

Loading content...