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§
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".