Trait CanComputeRef

Source
pub trait CanComputeRef<Code, Input> {
    type Output;

    // Required method
    fn compute_ref(
        &self,
        _code: PhantomData<Code>,
        input: &Input,
    ) -> Self::Output;
}

Required Associated Types§

Required Methods§

Source

fn compute_ref(&self, _code: PhantomData<Code>, input: &Input) -> Self::Output

Implementors§

Source§

impl<Context, Code, Input> CanComputeRef<Code, Input> for Context
where Context: HasCgpProvider, Context::CgpProvider: ComputerRef<Context, Code, Input>,

Source§

type Output = <<Context as HasCgpProvider>::CgpProvider as ComputerRef<Context, Code, Input>>::Output