Skip to main content

CanTryCompute

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 + TryComputer<__Context__, Code, Input>,

Source§

type Output = <__Context__ as TryComputer<__Context__, Code, Input>>::Output