Trait num::Num
[−]
[src]
pub trait Num: Zero + One + NumOps<Self, Self> + PartialEq<Self> { type FromStrRadixErr; fn from_str_radix(
str: &str,
radix: u32
) -> Result<Self, Self::FromStrRadixErr>; }
The base trait for numeric types, covering 0
and 1
values,
comparisons, basic numeric operations, and string conversion.
Associated Types
type FromStrRadixErr
Required Methods
fn from_str_radix(str: &str, radix: u32) -> Result<Self, Self::FromStrRadixErr>
Implementors
impl Num for u64
impl Num for i64
impl Num for usize
impl Num for u16
impl Num for f32
impl Num for i32
impl Num for isize
impl Num for f64
impl Num for i16
impl<T> Num for Wrapping<T> where
T: Num,
Wrapping<T>: Mul<Wrapping<T>>,
Wrapping<T>: Add<Wrapping<T>>,
Wrapping<T>: Div<Wrapping<T>>,
Wrapping<T>: Rem<Wrapping<T>>,
Wrapping<T>: Sub<Wrapping<T>>,
<Wrapping<T> as Add<Wrapping<T>>>::Output == Wrapping<T>,
<Wrapping<T> as Sub<Wrapping<T>>>::Output == Wrapping<T>,
<Wrapping<T> as Mul<Wrapping<T>>>::Output == Wrapping<T>,
<Wrapping<T> as Div<Wrapping<T>>>::Output == Wrapping<T>,
<Wrapping<T> as Rem<Wrapping<T>>>::Output == Wrapping<T>,impl Num for u32
impl Num for i8
impl Num for u8