Trait number_traits::ToPrimitive [] [src]

pub trait ToPrimitive {
    fn to_usize(&self) -> usize;
fn to_u8(&self) -> u8;
fn to_u16(&self) -> u16;
fn to_u32(&self) -> u32;
fn to_u64(&self) -> u64;
fn to_u128(&self) -> u128;
fn to_isize(&self) -> isize;
fn to_i8(&self) -> i8;
fn to_i16(&self) -> i16;
fn to_i32(&self) -> i32;
fn to_i64(&self) -> i64;
fn to_i128(&self) -> i128;
fn to_f32(&self) -> f32;
fn to_f64(&self) -> f64; fn to_bool(&self) -> bool { ... } }

Required Methods

Provided Methods

Implementations on Foreign Types

impl<T> ToPrimitive for Wrapping<T> where
    T: ToPrimitive
[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

Implementors