Trait ToPrim

Source
pub trait ToPrim: ToString {
Show 14 methods // Required methods 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_isize(self) -> isize; 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_usize(self) -> usize; fn to_f32(self) -> f32; fn to_f64(self) -> f64;
}

Required Methods§

Source

fn to_i8(self) -> i8

Source

fn to_i16(self) -> i16

Source

fn to_i32(self) -> i32

Source

fn to_i64(self) -> i64

Source

fn to_i128(self) -> i128

Source

fn to_isize(self) -> isize

Source

fn to_u8(self) -> u8

Source

fn to_u16(self) -> u16

Source

fn to_u32(self) -> u32

Source

fn to_u64(self) -> u64

Source

fn to_u128(self) -> u128

Source

fn to_usize(self) -> usize

Source

fn to_f32(self) -> f32

Source

fn to_f64(self) -> f64

Implementations on Foreign Types§

Source§

impl ToPrim for f32

Source§

fn to_i8(self) -> i8

Source§

fn to_i16(self) -> i16

Source§

fn to_i32(self) -> i32

Source§

fn to_i64(self) -> i64

Source§

fn to_i128(self) -> i128

Source§

fn to_isize(self) -> isize

Source§

fn to_u8(self) -> u8

Source§

fn to_u16(self) -> u16

Source§

fn to_u32(self) -> u32

Source§

fn to_u64(self) -> u64

Source§

fn to_u128(self) -> u128

Source§

fn to_usize(self) -> usize

Source§

fn to_f32(self) -> f32

Source§

fn to_f64(self) -> f64

Source§

impl ToPrim for f64

Source§

fn to_i8(self) -> i8

Source§

fn to_i16(self) -> i16

Source§

fn to_i32(self) -> i32

Source§

fn to_i64(self) -> i64

Source§

fn to_i128(self) -> i128

Source§

fn to_isize(self) -> isize

Source§

fn to_u8(self) -> u8

Source§

fn to_u16(self) -> u16

Source§

fn to_u32(self) -> u32

Source§

fn to_u64(self) -> u64

Source§

fn to_u128(self) -> u128

Source§

fn to_usize(self) -> usize

Source§

fn to_f32(self) -> f32

Source§

fn to_f64(self) -> f64

Source§

impl ToPrim for i8

Source§

fn to_i8(self) -> i8

Source§

fn to_i16(self) -> i16

Source§

fn to_i32(self) -> i32

Source§

fn to_i64(self) -> i64

Source§

fn to_i128(self) -> i128

Source§

fn to_isize(self) -> isize

Source§

fn to_u8(self) -> u8

Source§

fn to_u16(self) -> u16

Source§

fn to_u32(self) -> u32

Source§

fn to_u64(self) -> u64

Source§

fn to_u128(self) -> u128

Source§

fn to_usize(self) -> usize

Source§

fn to_f32(self) -> f32

Source§

fn to_f64(self) -> f64

Source§

impl ToPrim for i16

Source§

fn to_i8(self) -> i8

Source§

fn to_i16(self) -> i16

Source§

fn to_i32(self) -> i32

Source§

fn to_i64(self) -> i64

Source§

fn to_i128(self) -> i128

Source§

fn to_isize(self) -> isize

Source§

fn to_u8(self) -> u8

Source§

fn to_u16(self) -> u16

Source§

fn to_u32(self) -> u32

Source§

fn to_u64(self) -> u64

Source§

fn to_u128(self) -> u128

Source§

fn to_usize(self) -> usize

Source§

fn to_f32(self) -> f32

Source§

fn to_f64(self) -> f64

Source§

impl ToPrim for i32

Source§

fn to_i8(self) -> i8

Source§

fn to_i16(self) -> i16

Source§

fn to_i32(self) -> i32

Source§

fn to_i64(self) -> i64

Source§

fn to_i128(self) -> i128

Source§

fn to_isize(self) -> isize

Source§

fn to_u8(self) -> u8

Source§

fn to_u16(self) -> u16

Source§

fn to_u32(self) -> u32

Source§

fn to_u64(self) -> u64

Source§

fn to_u128(self) -> u128

Source§

fn to_usize(self) -> usize

Source§

fn to_f32(self) -> f32

Source§

fn to_f64(self) -> f64

Source§

impl ToPrim for i64

Source§

fn to_i8(self) -> i8

Source§

fn to_i16(self) -> i16

Source§

fn to_i32(self) -> i32

Source§

fn to_i64(self) -> i64

Source§

fn to_i128(self) -> i128

Source§

fn to_isize(self) -> isize

Source§

fn to_u8(self) -> u8

Source§

fn to_u16(self) -> u16

Source§

fn to_u32(self) -> u32

Source§

fn to_u64(self) -> u64

Source§

fn to_u128(self) -> u128

Source§

fn to_usize(self) -> usize

Source§

fn to_f32(self) -> f32

Source§

fn to_f64(self) -> f64

Source§

impl ToPrim for i128

Source§

fn to_i8(self) -> i8

Source§

fn to_i16(self) -> i16

Source§

fn to_i32(self) -> i32

Source§

fn to_i64(self) -> i64

Source§

fn to_i128(self) -> i128

Source§

fn to_isize(self) -> isize

Source§

fn to_u8(self) -> u8

Source§

fn to_u16(self) -> u16

Source§

fn to_u32(self) -> u32

Source§

fn to_u64(self) -> u64

Source§

fn to_u128(self) -> u128

Source§

fn to_usize(self) -> usize

Source§

fn to_f32(self) -> f32

Source§

fn to_f64(self) -> f64

Source§

impl ToPrim for isize

Source§

fn to_i8(self) -> i8

Source§

fn to_i16(self) -> i16

Source§

fn to_i32(self) -> i32

Source§

fn to_i64(self) -> i64

Source§

fn to_i128(self) -> i128

Source§

fn to_isize(self) -> isize

Source§

fn to_u8(self) -> u8

Source§

fn to_u16(self) -> u16

Source§

fn to_u32(self) -> u32

Source§

fn to_u64(self) -> u64

Source§

fn to_u128(self) -> u128

Source§

fn to_usize(self) -> usize

Source§

fn to_f32(self) -> f32

Source§

fn to_f64(self) -> f64

Source§

impl ToPrim for u8

Source§

fn to_i8(self) -> i8

Source§

fn to_i16(self) -> i16

Source§

fn to_i32(self) -> i32

Source§

fn to_i64(self) -> i64

Source§

fn to_i128(self) -> i128

Source§

fn to_isize(self) -> isize

Source§

fn to_u8(self) -> u8

Source§

fn to_u16(self) -> u16

Source§

fn to_u32(self) -> u32

Source§

fn to_u64(self) -> u64

Source§

fn to_u128(self) -> u128

Source§

fn to_usize(self) -> usize

Source§

fn to_f32(self) -> f32

Source§

fn to_f64(self) -> f64

Source§

impl ToPrim for u16

Source§

fn to_i8(self) -> i8

Source§

fn to_i16(self) -> i16

Source§

fn to_i32(self) -> i32

Source§

fn to_i64(self) -> i64

Source§

fn to_i128(self) -> i128

Source§

fn to_isize(self) -> isize

Source§

fn to_u8(self) -> u8

Source§

fn to_u16(self) -> u16

Source§

fn to_u32(self) -> u32

Source§

fn to_u64(self) -> u64

Source§

fn to_u128(self) -> u128

Source§

fn to_usize(self) -> usize

Source§

fn to_f32(self) -> f32

Source§

fn to_f64(self) -> f64

Source§

impl ToPrim for u32

Source§

fn to_i8(self) -> i8

Source§

fn to_i16(self) -> i16

Source§

fn to_i32(self) -> i32

Source§

fn to_i64(self) -> i64

Source§

fn to_i128(self) -> i128

Source§

fn to_isize(self) -> isize

Source§

fn to_u8(self) -> u8

Source§

fn to_u16(self) -> u16

Source§

fn to_u32(self) -> u32

Source§

fn to_u64(self) -> u64

Source§

fn to_u128(self) -> u128

Source§

fn to_usize(self) -> usize

Source§

fn to_f32(self) -> f32

Source§

fn to_f64(self) -> f64

Source§

impl ToPrim for u64

Source§

fn to_i8(self) -> i8

Source§

fn to_i16(self) -> i16

Source§

fn to_i32(self) -> i32

Source§

fn to_i64(self) -> i64

Source§

fn to_i128(self) -> i128

Source§

fn to_isize(self) -> isize

Source§

fn to_u8(self) -> u8

Source§

fn to_u16(self) -> u16

Source§

fn to_u32(self) -> u32

Source§

fn to_u64(self) -> u64

Source§

fn to_u128(self) -> u128

Source§

fn to_usize(self) -> usize

Source§

fn to_f32(self) -> f32

Source§

fn to_f64(self) -> f64

Source§

impl ToPrim for u128

Source§

fn to_i8(self) -> i8

Source§

fn to_i16(self) -> i16

Source§

fn to_i32(self) -> i32

Source§

fn to_i64(self) -> i64

Source§

fn to_i128(self) -> i128

Source§

fn to_isize(self) -> isize

Source§

fn to_u8(self) -> u8

Source§

fn to_u16(self) -> u16

Source§

fn to_u32(self) -> u32

Source§

fn to_u64(self) -> u64

Source§

fn to_u128(self) -> u128

Source§

fn to_usize(self) -> usize

Source§

fn to_f32(self) -> f32

Source§

fn to_f64(self) -> f64

Source§

impl ToPrim for usize

Source§

fn to_i8(self) -> i8

Source§

fn to_i16(self) -> i16

Source§

fn to_i32(self) -> i32

Source§

fn to_i64(self) -> i64

Source§

fn to_i128(self) -> i128

Source§

fn to_isize(self) -> isize

Source§

fn to_u8(self) -> u8

Source§

fn to_u16(self) -> u16

Source§

fn to_u32(self) -> u32

Source§

fn to_u64(self) -> u64

Source§

fn to_u128(self) -> u128

Source§

fn to_usize(self) -> usize

Source§

fn to_f32(self) -> f32

Source§

fn to_f64(self) -> f64

Implementors§