pub trait CastFrom<T> {
// Required method
fn cast_from(from: T) -> Self;
}
Expand description
Backend implementation trait for panic-free casting between numeric types.
Required Methods§
Object Safety§
This trait is not object safe.
pub trait CastFrom<T> {
// Required method
fn cast_from(from: T) -> Self;
}
Backend implementation trait for panic-free casting between numeric types.