Trait malachite_base::num::conversion::traits::ExactFrom
source · pub trait ExactFrom<T>: Sized {
fn exact_from(value: T) -> Self;
}
Expand description
Converts a value from one type to another. If the conversion fails, the function panics.
It is recommended that this trait is not implemented directly; it is automatically implemented
when TryFrom
is implemented.