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