Trait num::traits::Num
[-] [+]
[src]
pub trait Num: PartialEq + Zero + One + Add<Output=Self> + Sub<Output=Self> + Mul<Output=Self> + Div<Output=Self> + Rem<Output=Self> { type FromStrRadixErr; fn from_str_radix(str: &str, radix: u32) -> Result<Self, Self::FromStrRadixErr>; }
The base trait for numeric types
Associated Types
Required Methods
fn from_str_radix(str: &str, radix: u32) -> Result<Self, Self::FromStrRadixErr>
Convert from a string and radix <= 36.
Implementors
impl Num for BigUint
impl Num for BigInt
impl Num for usize
impl Num for u8
impl Num for u16
impl Num for u32
impl Num for u64
impl Num for isize
impl Num for i8
impl Num for i16
impl Num for i32
impl Num for i64
impl Num for f32
impl Num for f64
impl<T: Clone + Integer + PartialOrd> Num for Ratio<T>