pub trait TryFromGuts: HasGuts {
type Error;
// Required method
fn try_from_guts(guts: Self::Guts) -> Result<Self, Self::Error>;
}
Expand description
Safely constructing values from their guts with possible failure.
Required Associated Types§
Required Methods§
Sourcefn try_from_guts(guts: Self::Guts) -> Result<Self, Self::Error>
fn try_from_guts(guts: Self::Guts) -> Result<Self, Self::Error>
Constructs a value from its guts, or fails.
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.