Trait CanTryComputeRef

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

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

Required Associated Types§

Required Methods§

Source

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

Implementors§

Source§

impl<Context, Code, Input> CanTryComputeRef<Code, Input> for Context
where Context: HasErrorType + HasCgpProvider, Context::CgpProvider: TryComputerRef<Context, Code, Input>,

Source§

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