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

type FromStrRadixErr

Parse error for from_str_radix

Required Methods

fn from_str_radix(str: &str, radix: u32) -> Result<Self, Self::FromStrRadixErr>

Convert from a string and radix <= 36.

Implementors