Trait std::convert::TryFrom
[−]
[src]
pub trait TryFrom<T> { type Err; fn try_from(T) -> Result<Self, Self::Err>; }
🔬 This is a nightly-only experimental API. (
try_from
)Attempt to construct Self
via a conversion.
Associated Types
type Err
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
Required Methods
fn try_from(T) -> Result<Self, Self::Err>
🔬 This is a nightly-only experimental API. (
try_from
)Performs the conversion.
Implementors
impl TryFrom<u32> for char
impl TryFrom<u8> for u8
impl TryFrom<u16> for u8
impl TryFrom<u32> for u8
impl TryFrom<u64> for u8
impl TryFrom<u128> for u8
impl TryFrom<usize> for u8
impl TryFrom<i8> for i8
impl TryFrom<i16> for i8
impl TryFrom<i32> for i8
impl TryFrom<i64> for i8
impl TryFrom<i128> for i8
impl TryFrom<isize> for i8
impl TryFrom<u8> for u16
impl TryFrom<u16> for u16
impl TryFrom<u32> for u16
impl TryFrom<u64> for u16
impl TryFrom<u128> for u16
impl TryFrom<usize> for u16
impl TryFrom<i8> for i16
impl TryFrom<i16> for i16
impl TryFrom<i32> for i16
impl TryFrom<i64> for i16
impl TryFrom<i128> for i16
impl TryFrom<isize> for i16
impl TryFrom<u8> for u32
impl TryFrom<u16> for u32
impl TryFrom<u32> for u32
impl TryFrom<u64> for u32
impl TryFrom<u128> for u32
impl TryFrom<usize> for u32
impl TryFrom<i8> for i32
impl TryFrom<i16> for i32
impl TryFrom<i32> for i32
impl TryFrom<i64> for i32
impl TryFrom<i128> for i32
impl TryFrom<isize> for i32
impl TryFrom<u8> for u64
impl TryFrom<u16> for u64
impl TryFrom<u32> for u64
impl TryFrom<u64> for u64
impl TryFrom<u128> for u64
impl TryFrom<usize> for u64
impl TryFrom<i8> for i64
impl TryFrom<i16> for i64
impl TryFrom<i32> for i64
impl TryFrom<i64> for i64
impl TryFrom<i128> for i64
impl TryFrom<isize> for i64
impl TryFrom<u8> for u128
impl TryFrom<u16> for u128
impl TryFrom<u32> for u128
impl TryFrom<u64> for u128
impl TryFrom<u128> for u128
impl TryFrom<usize> for u128
impl TryFrom<i8> for i128
impl TryFrom<i16> for i128
impl TryFrom<i32> for i128
impl TryFrom<i64> for i128
impl TryFrom<i128> for i128
impl TryFrom<isize> for i128
impl TryFrom<u8> for usize
impl TryFrom<u16> for usize
impl TryFrom<u32> for usize
impl TryFrom<u64> for usize
impl TryFrom<u128> for usize
impl TryFrom<usize> for usize
impl TryFrom<i8> for isize
impl TryFrom<i16> for isize
impl TryFrom<i32> for isize
impl TryFrom<i64> for isize
impl TryFrom<i128> for isize
impl TryFrom<isize> for isize
impl TryFrom<u8> for i8
impl TryFrom<i8> for u8
impl TryFrom<u8> for i16
impl TryFrom<i16> for u8
impl TryFrom<u8> for i32
impl TryFrom<i32> for u8
impl TryFrom<u8> for i64
impl TryFrom<i64> for u8
impl TryFrom<u8> for i128
impl TryFrom<i128> for u8
impl TryFrom<u8> for isize
impl TryFrom<isize> for u8
impl TryFrom<u16> for i8
impl TryFrom<i8> for u16
impl TryFrom<u16> for i16
impl TryFrom<i16> for u16
impl TryFrom<u16> for i32
impl TryFrom<i32> for u16
impl TryFrom<u16> for i64
impl TryFrom<i64> for u16
impl TryFrom<u16> for i128
impl TryFrom<i128> for u16
impl TryFrom<u16> for isize
impl TryFrom<isize> for u16
impl TryFrom<u32> for i8
impl TryFrom<i8> for u32
impl TryFrom<u32> for i16
impl TryFrom<i16> for u32
impl TryFrom<u32> for i32
impl TryFrom<i32> for u32
impl TryFrom<u32> for i64
impl TryFrom<i64> for u32
impl TryFrom<u32> for i128
impl TryFrom<i128> for u32
impl TryFrom<u32> for isize
impl TryFrom<isize> for u32
impl TryFrom<u64> for i8
impl TryFrom<i8> for u64
impl TryFrom<u64> for i16
impl TryFrom<i16> for u64
impl TryFrom<u64> for i32
impl TryFrom<i32> for u64
impl TryFrom<u64> for i64
impl TryFrom<i64> for u64
impl TryFrom<u64> for i128
impl TryFrom<i128> for u64
impl TryFrom<u64> for isize
impl TryFrom<isize> for u64
impl TryFrom<u128> for i8
impl TryFrom<i8> for u128
impl TryFrom<u128> for i16
impl TryFrom<i16> for u128
impl TryFrom<u128> for i32
impl TryFrom<i32> for u128
impl TryFrom<u128> for i64
impl TryFrom<i64> for u128
impl TryFrom<u128> for i128
impl TryFrom<i128> for u128
impl TryFrom<u128> for isize
impl TryFrom<isize> for u128
impl TryFrom<usize> for i8
impl TryFrom<i8> for usize
impl TryFrom<usize> for i16
impl TryFrom<i16> for usize
impl TryFrom<usize> for i32
impl TryFrom<i32> for usize
impl TryFrom<usize> for i64
impl TryFrom<i64> for usize
impl TryFrom<usize> for i128
impl TryFrom<i128> for usize
impl TryFrom<usize> for isize
impl TryFrom<isize> for usize