[−][src]Trait num_traits::cast::NumCast
An interface for casting between machine scalars.
Required Methods
fn from<T>(n: T) -> Option<Self> where
T: ToPrimitive,
T: ToPrimitive,
Creates a number from another value that can be converted into
a primitive via the ToPrimitive trait.
Implementations on Foreign Types
impl NumCast for u16[src]
impl NumCast for u16fn from<N>(n: N) -> Option<u16> where
N: ToPrimitive, [src]
fn from<N>(n: N) -> Option<u16> where
N: ToPrimitive, impl NumCast for i32[src]
impl NumCast for i32fn from<N>(n: N) -> Option<i32> where
N: ToPrimitive, [src]
fn from<N>(n: N) -> Option<i32> where
N: ToPrimitive, impl NumCast for u128[src]
impl NumCast for u128fn from<N>(n: N) -> Option<u128> where
N: ToPrimitive, [src]
fn from<N>(n: N) -> Option<u128> where
N: ToPrimitive, impl NumCast for i64[src]
impl NumCast for i64fn from<N>(n: N) -> Option<i64> where
N: ToPrimitive, [src]
fn from<N>(n: N) -> Option<i64> where
N: ToPrimitive, impl NumCast for isize[src]
impl NumCast for isizefn from<N>(n: N) -> Option<isize> where
N: ToPrimitive, [src]
fn from<N>(n: N) -> Option<isize> where
N: ToPrimitive, impl NumCast for u64[src]
impl NumCast for u64fn from<N>(n: N) -> Option<u64> where
N: ToPrimitive, [src]
fn from<N>(n: N) -> Option<u64> where
N: ToPrimitive, impl NumCast for u8[src]
impl NumCast for u8fn from<N>(n: N) -> Option<u8> where
N: ToPrimitive, [src]
fn from<N>(n: N) -> Option<u8> where
N: ToPrimitive, impl NumCast for u32[src]
impl NumCast for u32fn from<N>(n: N) -> Option<u32> where
N: ToPrimitive, [src]
fn from<N>(n: N) -> Option<u32> where
N: ToPrimitive, impl<T> NumCast for Wrapping<T> where
T: NumCast, [src]
impl<T> NumCast for Wrapping<T> where
T: NumCast, fn from<U>(n: U) -> Option<Wrapping<T>> where
U: ToPrimitive, [src]
fn from<U>(n: U) -> Option<Wrapping<T>> where
U: ToPrimitive, impl NumCast for i16[src]
impl NumCast for i16fn from<N>(n: N) -> Option<i16> where
N: ToPrimitive, [src]
fn from<N>(n: N) -> Option<i16> where
N: ToPrimitive, impl NumCast for f32[src]
impl NumCast for f32fn from<N>(n: N) -> Option<f32> where
N: ToPrimitive, [src]
fn from<N>(n: N) -> Option<f32> where
N: ToPrimitive, impl NumCast for usize[src]
impl NumCast for usizefn from<N>(n: N) -> Option<usize> where
N: ToPrimitive, [src]
fn from<N>(n: N) -> Option<usize> where
N: ToPrimitive, impl NumCast for i128[src]
impl NumCast for i128fn from<N>(n: N) -> Option<i128> where
N: ToPrimitive, [src]
fn from<N>(n: N) -> Option<i128> where
N: ToPrimitive, impl NumCast for i8[src]
impl NumCast for i8fn from<N>(n: N) -> Option<i8> where
N: ToPrimitive, [src]
fn from<N>(n: N) -> Option<i8> where
N: ToPrimitive, impl NumCast for f64[src]
impl NumCast for f64fn from<N>(n: N) -> Option<f64> where
N: ToPrimitive, [src]
fn from<N>(n: N) -> Option<f64> where
N: ToPrimitive,