Skip to main content

num_cast

Function num_cast 

Source
pub fn num_cast<I, O>(value: I) -> Option<O>
where I: NumCast, O: NumCast,
Expand description

Natural cast between numeric types Return None if the input value can’t be casted to type O.