pub trait FromI16Lossywhere
Self: Sealed,{
// Required method
fn from_i16_lossy(value: i16) -> Self;
}
Expand description
Trait for number types that can be converted from i16
, potentially lossily
Required Methods§
Sourcefn from_i16_lossy(value: i16) -> Self
fn from_i16_lossy(value: i16) -> Self
Convert from a i16
value
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.