Skip to main content

CanTryComputeRef

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

Source§

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