Trait CanCompute

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

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

Required Associated Types§

Required Methods§

Source

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

Implementors§

Source§

impl<Context, Code, Input> CanCompute<Code, Input> for Context
where Context: HasCgpProvider, Context::CgpProvider: Computer<Context, Code, Input>,

Source§

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