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§
fn try_compute( &self, _code: PhantomData<Code>, input: Input, ) -> Result<Self::Output, Self::Error>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".