Module num
Modules
Traits
- BoundedCastFromInt Conversion between integers, wrapping around or saturating at the target type's boundaries.
- CheckedCastFromInt Fallible conversion between integers.
-
FloatToFloat
Supporting trait for the inherent
castmethod converting between float types. Typically doesn’t need to be used directly. -
FloatToInt
Supporting trait for inherent methods of
f32andf64such asto_int_unchecked. Typically doesn’t need to be used directly.
Macros
- impl_all_int_casts
- impl_float_from_bool
- impl_float_to_float
- impl_float_to_int
-
impl_from
Implement
From<$small>for$large -
impl_from_bool
Implement
From<bool>for integers - impl_int_cast
- impl_nonzero_int_from_nonzero_int
- impl_nonzero_int_try_from_int
- impl_nonzero_int_try_from_nonzero_int
- impl_try_from_both_bounded
-
impl_try_from_integer_for_bool
Implement
TryFrom<integer>forbool - impl_try_from_lower_bounded
- impl_try_from_unbounded
- impl_try_from_upper_bounded
- rev