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 as HasErrorType>::Error>;
}

Required Associated Types§

Required Methods§

Source

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

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

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