Trait cast::From
[−]
[src]
pub trait From<Src> { type Output; fn cast(_: Src) -> Self::Output; }
The "cast from" operation
Associated Types
type Output
The result of the cast operation: either Self
or Result<Self, Error>
Required Methods
Implementors
impl From<i8> for f32 type Output = f32;
impl From<i8> for f64 type Output = f64;
impl From<i8> for i8 type Output = i8;
impl From<i8> for i16 type Output = i16;
impl From<i8> for i32 type Output = i32;
impl From<i8> for isize type Output = isize;
impl From<i8> for i64 type Output = i64;
impl From<i16> for f32 type Output = f32;
impl From<i16> for f64 type Output = f64;
impl From<i16> for i16 type Output = i16;
impl From<i16> for i32 type Output = i32;
impl From<i16> for isize type Output = isize;
impl From<i16> for i64 type Output = i64;
impl From<i32> for f32 type Output = f32;
impl From<i32> for f64 type Output = f64;
impl From<i32> for i32 type Output = i32;
impl From<i32> for isize type Output = isize;
impl From<i32> for i64 type Output = i64;
impl From<isize> for f32 type Output = f32;
impl From<isize> for f64 type Output = f64;
impl From<isize> for i32 type Output = i32;
impl From<isize> for isize type Output = isize;
impl From<isize> for i64 type Output = i64;
impl From<i64> for f32 type Output = f32;
impl From<i64> for f64 type Output = f64;
impl From<i64> for i64 type Output = i64;
impl From<i8> for u8 type Output = Result<u8, Error>;
impl From<i8> for u16 type Output = Result<u16, Error>;
impl From<i8> for u32 type Output = Result<u32, Error>;
impl From<i8> for usize type Output = Result<usize, Error>;
impl From<i8> for u64 type Output = Result<u64, Error>;
impl From<i16> for u16 type Output = Result<u16, Error>;
impl From<i16> for u32 type Output = Result<u32, Error>;
impl From<i16> for usize type Output = Result<usize, Error>;
impl From<i16> for u64 type Output = Result<u64, Error>;
impl From<i32> for u32 type Output = Result<u32, Error>;
impl From<i32> for usize type Output = Result<usize, Error>;
impl From<i32> for u64 type Output = Result<u64, Error>;
impl From<isize> for u32 type Output = Result<u32, Error>;
impl From<isize> for usize type Output = Result<usize, Error>;
impl From<isize> for u64 type Output = Result<u64, Error>;
impl From<i64> for u64 type Output = Result<u64, Error>;
impl From<i16> for i8 type Output = Result<i8, Error>;
impl From<i16> for u8 type Output = Result<u8, Error>;
impl From<i32> for i8 type Output = Result<i8, Error>;
impl From<i32> for i16 type Output = Result<i16, Error>;
impl From<i32> for u8 type Output = Result<u8, Error>;
impl From<i32> for u16 type Output = Result<u16, Error>;
impl From<isize> for i8 type Output = Result<i8, Error>;
impl From<isize> for i16 type Output = Result<i16, Error>;
impl From<isize> for u8 type Output = Result<u8, Error>;
impl From<isize> for u16 type Output = Result<u16, Error>;
impl From<i64> for i8 type Output = Result<i8, Error>;
impl From<i64> for i16 type Output = Result<i16, Error>;
impl From<i64> for i32 type Output = Result<i32, Error>;
impl From<i64> for isize type Output = Result<isize, Error>;
impl From<i64> for u8 type Output = Result<u8, Error>;
impl From<i64> for u16 type Output = Result<u16, Error>;
impl From<i64> for u32 type Output = Result<u32, Error>;
impl From<i64> for usize type Output = Result<usize, Error>;
impl From<u8> for f32 type Output = f32;
impl From<u8> for f64 type Output = f64;
impl From<u8> for i16 type Output = i16;
impl From<u8> for i32 type Output = i32;
impl From<u8> for isize type Output = isize;
impl From<u8> for i64 type Output = i64;
impl From<u8> for u8 type Output = u8;
impl From<u8> for u16 type Output = u16;
impl From<u8> for u32 type Output = u32;
impl From<u8> for usize type Output = usize;
impl From<u8> for u64 type Output = u64;
impl From<u16> for f32 type Output = f32;
impl From<u16> for f64 type Output = f64;
impl From<u16> for i32 type Output = i32;
impl From<u16> for isize type Output = isize;
impl From<u16> for i64 type Output = i64;
impl From<u16> for u16 type Output = u16;
impl From<u16> for u32 type Output = u32;
impl From<u16> for usize type Output = usize;
impl From<u16> for u64 type Output = u64;
impl From<u32> for f32 type Output = f32;
impl From<u32> for f64 type Output = f64;
impl From<u32> for i64 type Output = i64;
impl From<u32> for u32 type Output = u32;
impl From<u32> for usize type Output = usize;
impl From<u32> for u64 type Output = u64;
impl From<usize> for f32 type Output = f32;
impl From<usize> for f64 type Output = f64;
impl From<usize> for i64 type Output = i64;
impl From<usize> for u32 type Output = u32;
impl From<usize> for usize type Output = usize;
impl From<usize> for u64 type Output = u64;
impl From<u64> for f32 type Output = f32;
impl From<u64> for f64 type Output = f64;
impl From<u64> for u64 type Output = u64;
impl From<u8> for i8 type Output = Result<i8, Error>;
impl From<u16> for i8 type Output = Result<i8, Error>;
impl From<u16> for i16 type Output = Result<i16, Error>;
impl From<u16> for u8 type Output = Result<u8, Error>;
impl From<u32> for i8 type Output = Result<i8, Error>;
impl From<u32> for i16 type Output = Result<i16, Error>;
impl From<u32> for i32 type Output = Result<i32, Error>;
impl From<u32> for isize type Output = Result<isize, Error>;
impl From<u32> for u8 type Output = Result<u8, Error>;
impl From<u32> for u16 type Output = Result<u16, Error>;
impl From<usize> for i8 type Output = Result<i8, Error>;
impl From<usize> for i16 type Output = Result<i16, Error>;
impl From<usize> for i32 type Output = Result<i32, Error>;
impl From<usize> for isize type Output = Result<isize, Error>;
impl From<usize> for u8 type Output = Result<u8, Error>;
impl From<usize> for u16 type Output = Result<u16, Error>;
impl From<u64> for i8 type Output = Result<i8, Error>;
impl From<u64> for i16 type Output = Result<i16, Error>;
impl From<u64> for i32 type Output = Result<i32, Error>;
impl From<u64> for isize type Output = Result<isize, Error>;
impl From<u64> for i64 type Output = Result<i64, Error>;
impl From<u64> for u8 type Output = Result<u8, Error>;
impl From<u64> for u16 type Output = Result<u16, Error>;
impl From<u64> for u32 type Output = Result<u32, Error>;
impl From<u64> for usize type Output = Result<usize, Error>;
impl From<f32> for f32 type Output = f32;
impl From<f32> for f64 type Output = f64;
impl From<f64> for f64 type Output = f64;
impl From<f32> for i8 type Output = Result<i8, Error>;
impl From<f32> for i16 type Output = Result<i16, Error>;
impl From<f32> for i32 type Output = Result<i32, Error>;
impl From<f32> for isize type Output = Result<isize, Error>;
impl From<f32> for i64 type Output = Result<i64, Error>;
impl From<f32> for u8 type Output = Result<u8, Error>;
impl From<f32> for u16 type Output = Result<u16, Error>;
impl From<f32> for u32 type Output = Result<u32, Error>;
impl From<f32> for usize type Output = Result<usize, Error>;
impl From<f32> for u64 type Output = Result<u64, Error>;
impl From<f64> for i8 type Output = Result<i8, Error>;
impl From<f64> for i16 type Output = Result<i16, Error>;
impl From<f64> for i32 type Output = Result<i32, Error>;
impl From<f64> for isize type Output = Result<isize, Error>;
impl From<f64> for i64 type Output = Result<i64, Error>;
impl From<f64> for u8 type Output = Result<u8, Error>;
impl From<f64> for u16 type Output = Result<u16, Error>;
impl From<f64> for u32 type Output = Result<u32, Error>;
impl From<f64> for usize type Output = Result<usize, Error>;
impl From<f64> for u64 type Output = Result<u64, Error>;
impl From<f64> for f32 type Output = Result<f32, Error>;