Trait concrete_commons::numeric::CastFrom
source · [−]pub trait CastFrom<Input> {
fn cast_from(input: Input) -> Self;
}
Expand description
A trait that allows to generically cast one type from another.
This type is similar to the std::convert::From
trait, but the conversion between the two
types is deferred to the individual as
casting. If in doubt about the semantics of such a
casting, refer to
the rust reference.