[][src]Trait cast::From

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>

Loading content...

Required methods

fn cast(_: Src) -> Self::Output

Checked cast from Src to Self

Loading content...

Implementations on Foreign Types

impl From<i8> for f32[src]

type Output = f32

impl From<i8> for f64[src]

type Output = f64

impl From<i8> for i8[src]

type Output = i8

impl From<i8> for i16[src]

type Output = i16

impl From<i8> for i32[src]

type Output = i32

impl From<i8> for i64[src]

type Output = i64

impl From<i8> for isize[src]

type Output = isize

impl From<i16> for f32[src]

type Output = f32

impl From<i16> for f64[src]

type Output = f64

impl From<i16> for i16[src]

type Output = i16

impl From<i16> for i32[src]

type Output = i32

impl From<i16> for i64[src]

type Output = i64

impl From<i16> for isize[src]

type Output = isize

impl From<i32> for f32[src]

type Output = f32

impl From<i32> for f64[src]

type Output = f64

impl From<i32> for i32[src]

type Output = i32

impl From<i32> for i64[src]

type Output = i64

impl From<i32> for isize[src]

type Output = isize

impl From<i64> for f32[src]

type Output = f32

impl From<i64> for f64[src]

type Output = f64

impl From<i64> for i64[src]

type Output = i64

impl From<i64> for isize[src]

type Output = isize

impl From<isize> for f32[src]

type Output = f32

impl From<isize> for f64[src]

type Output = f64

impl From<isize> for i64[src]

type Output = i64

impl From<isize> for isize[src]

type Output = isize

impl From<i8> for u8[src]

type Output = Result<u8, Error>

impl From<i8> for u16[src]

type Output = Result<u16, Error>

impl From<i8> for u32[src]

type Output = Result<u32, Error>

impl From<i8> for u64[src]

type Output = Result<u64, Error>

impl From<i8> for usize[src]

type Output = Result<usize, Error>

impl From<i16> for u16[src]

type Output = Result<u16, Error>

impl From<i16> for u32[src]

type Output = Result<u32, Error>

impl From<i16> for u64[src]

type Output = Result<u64, Error>

impl From<i16> for usize[src]

type Output = Result<usize, Error>

impl From<i32> for u32[src]

type Output = Result<u32, Error>

impl From<i32> for u64[src]

type Output = Result<u64, Error>

impl From<i32> for usize[src]

type Output = Result<usize, Error>

impl From<i64> for u64[src]

type Output = Result<u64, Error>

impl From<i64> for usize[src]

type Output = Result<usize, Error>

impl From<isize> for u64[src]

type Output = Result<u64, Error>

impl From<isize> for usize[src]

type Output = Result<usize, Error>

impl From<i16> for i8[src]

type Output = Result<i8, Error>

impl From<i16> for u8[src]

type Output = Result<u8, Error>

impl From<i32> for i8[src]

type Output = Result<i8, Error>

impl From<i32> for i16[src]

type Output = Result<i16, Error>

impl From<i32> for u8[src]

type Output = Result<u8, Error>

impl From<i32> for u16[src]

type Output = Result<u16, Error>

impl From<i64> for i8[src]

type Output = Result<i8, Error>

impl From<i64> for i16[src]

type Output = Result<i16, Error>

impl From<i64> for i32[src]

type Output = Result<i32, Error>

impl From<i64> for u8[src]

type Output = Result<u8, Error>

impl From<i64> for u16[src]

type Output = Result<u16, Error>

impl From<i64> for u32[src]

type Output = Result<u32, Error>

impl From<isize> for i8[src]

type Output = Result<i8, Error>

impl From<isize> for i16[src]

type Output = Result<i16, Error>

impl From<isize> for i32[src]

type Output = Result<i32, Error>

impl From<isize> for u8[src]

type Output = Result<u8, Error>

impl From<isize> for u16[src]

type Output = Result<u16, Error>

impl From<isize> for u32[src]

type Output = Result<u32, Error>

impl From<u8> for f32[src]

type Output = f32

impl From<u8> for f64[src]

type Output = f64

impl From<u8> for i16[src]

type Output = i16

impl From<u8> for i32[src]

type Output = i32

impl From<u8> for i64[src]

type Output = i64

impl From<u8> for isize[src]

type Output = isize

impl From<u8> for u8[src]

type Output = u8

impl From<u8> for u16[src]

type Output = u16

impl From<u8> for u32[src]

type Output = u32

impl From<u8> for u64[src]

type Output = u64

impl From<u8> for usize[src]

type Output = usize

impl From<u16> for f32[src]

type Output = f32

impl From<u16> for f64[src]

type Output = f64

impl From<u16> for i32[src]

type Output = i32

impl From<u16> for i64[src]

type Output = i64

impl From<u16> for isize[src]

type Output = isize

impl From<u16> for u16[src]

type Output = u16

impl From<u16> for u32[src]

type Output = u32

impl From<u16> for u64[src]

type Output = u64

impl From<u16> for usize[src]

type Output = usize

impl From<u32> for f32[src]

type Output = f32

impl From<u32> for f64[src]

type Output = f64

impl From<u32> for i64[src]

type Output = i64

impl From<u32> for isize[src]

type Output = isize

impl From<u32> for u32[src]

type Output = u32

impl From<u32> for u64[src]

type Output = u64

impl From<u32> for usize[src]

type Output = usize

impl From<u64> for f32[src]

type Output = f32

impl From<u64> for f64[src]

type Output = f64

impl From<u64> for u64[src]

type Output = u64

impl From<u64> for usize[src]

type Output = usize

impl From<usize> for f32[src]

type Output = f32

impl From<usize> for f64[src]

type Output = f64

impl From<usize> for u64[src]

type Output = u64

impl From<usize> for usize[src]

type Output = usize

impl From<u8> for i8[src]

type Output = Result<i8, Error>

impl From<u16> for i8[src]

type Output = Result<i8, Error>

impl From<u16> for i16[src]

type Output = Result<i16, Error>

impl From<u16> for u8[src]

type Output = Result<u8, Error>

impl From<u32> for i8[src]

type Output = Result<i8, Error>

impl From<u32> for i16[src]

type Output = Result<i16, Error>

impl From<u32> for i32[src]

type Output = Result<i32, Error>

impl From<u32> for u8[src]

type Output = Result<u8, Error>

impl From<u32> for u16[src]

type Output = Result<u16, Error>

impl From<u64> for i8[src]

type Output = Result<i8, Error>

impl From<u64> for i16[src]

type Output = Result<i16, Error>

impl From<u64> for i32[src]

type Output = Result<i32, Error>

impl From<u64> for i64[src]

type Output = Result<i64, Error>

impl From<u64> for isize[src]

type Output = Result<isize, Error>

impl From<u64> for u8[src]

type Output = Result<u8, Error>

impl From<u64> for u16[src]

type Output = Result<u16, Error>

impl From<u64> for u32[src]

type Output = Result<u32, Error>

impl From<usize> for i8[src]

type Output = Result<i8, Error>

impl From<usize> for i16[src]

type Output = Result<i16, Error>

impl From<usize> for i32[src]

type Output = Result<i32, Error>

impl From<usize> for i64[src]

type Output = Result<i64, Error>

impl From<usize> for isize[src]

type Output = Result<isize, Error>

impl From<usize> for u8[src]

type Output = Result<u8, Error>

impl From<usize> for u16[src]

type Output = Result<u16, Error>

impl From<usize> for u32[src]

type Output = Result<u32, Error>

impl From<f32> for f32[src]

type Output = f32

impl From<f32> for f64[src]

type Output = f64

impl From<f64> for f64[src]

type Output = f64

impl From<f32> for i8[src]

type Output = Result<i8, Error>

impl From<f32> for i16[src]

type Output = Result<i16, Error>

impl From<f32> for i32[src]

type Output = Result<i32, Error>

impl From<f32> for i64[src]

type Output = Result<i64, Error>

impl From<f32> for isize[src]

type Output = Result<isize, Error>

impl From<f32> for u8[src]

type Output = Result<u8, Error>

impl From<f32> for u16[src]

type Output = Result<u16, Error>

impl From<f32> for u32[src]

type Output = Result<u32, Error>

impl From<f32> for u64[src]

type Output = Result<u64, Error>

impl From<f32> for usize[src]

type Output = Result<usize, Error>

impl From<f64> for i8[src]

type Output = Result<i8, Error>

impl From<f64> for i16[src]

type Output = Result<i16, Error>

impl From<f64> for i32[src]

type Output = Result<i32, Error>

impl From<f64> for i64[src]

type Output = Result<i64, Error>

impl From<f64> for isize[src]

type Output = Result<isize, Error>

impl From<f64> for u8[src]

type Output = Result<u8, Error>

impl From<f64> for u16[src]

type Output = Result<u16, Error>

impl From<f64> for u32[src]

type Output = Result<u32, Error>

impl From<f64> for u64[src]

type Output = Result<u64, Error>

impl From<f64> for usize[src]

type Output = Result<usize, Error>

impl From<f64> for f32[src]

type Output = Result<f32, Error>

Loading content...

Implementors

Loading content...