pub trait TryMorph<A> {
type Outcome;
// Required method
fn try_morph(a: A) -> Result<Self::Outcome, ()>;
}
Expand description
Extensible conversion trait. Generic over only source type, with destination type being associated.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.