pub trait TryNumFrom<T>: Sized {
// Required method
fn try_num_from(_: T) -> Option<Self>;
}
Expand description
Just like TryFrom
Required Methods§
Sourcefn try_num_from(_: T) -> Option<Self>
fn try_num_from(_: T) -> Option<Self>
Casts between numeric types.
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.