Trait CanTryCompute

Source
pub trait CanTryCompute<Code, Input>: HasErrorType {
    type Output;

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

Required Associated Types§

Required Methods§

Source

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

Implementors§

Source§

impl<Context, Code, Input> CanTryCompute<Code, Input> for Context
where Context: HasErrorType + HasCgpProvider, Context::CgpProvider: TryComputer<Context, Code, Input>,

Source§

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