pub trait LossyFrom<T> {
// Required method
fn lossy_from(value: T) -> Self;
}Required Methods§
fn lossy_from(value: T) -> Self
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.
Implementations on Foreign Types§
Source§impl LossyFrom<bool> for bool
Available on crate feature bool only.
impl LossyFrom<bool> for bool
Available on crate feature
bool only.fn lossy_from(value: bool) -> Self
Source§impl LossyFrom<bool> for String
Available on crate features bool and string only.
impl LossyFrom<bool> for String
Available on crate features
bool and string only.fn lossy_from(value: bool) -> Self
Source§impl LossyFrom<f32> for String
Available on crate features f32 and string only.
impl LossyFrom<f32> for String
Available on crate features
f32 and string only.fn lossy_from(value: f32) -> Self
Source§impl LossyFrom<f64> for String
Available on crate features f64 and string only.
impl LossyFrom<f64> for String
Available on crate features
f64 and string only.fn lossy_from(value: f64) -> Self
Source§impl LossyFrom<R64> for f64
Available on crate features rational and f64 only.
impl LossyFrom<R64> for f64
Available on crate features
rational and f64 only.fn lossy_from(value: R64) -> Self
Source§impl LossyFrom<R64> for String
Available on crate features rational and string only.
impl LossyFrom<R64> for String
Available on crate features
rational and string only.fn lossy_from(value: R64) -> Self
Source§impl LossyFrom<String> for String
Available on crate feature string only.
impl LossyFrom<String> for String
Available on crate feature
string only.