pub trait CastFrom<T> {
// Required method
fn cast_from(from: T) -> Self;
}
Expand description
Backend implementation trait for panic-free casting between numeric types.
pub trait CastFrom<T> {
// Required method
fn cast_from(from: T) -> Self;
}
Backend implementation trait for panic-free casting between numeric types.