pub trait TryFrom<T> { type Err; fn try_from(T) -> Result<Self, Self::Err>; }
Attempt to construct Self
via a conversion.
type Err
The type returned in the event of a conversion error.
fn try_from(T) -> Result<Self, Self::Err>
Performs the conversion.
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
© 2010 The Rust Project Developers
Licensed under the Apache License, Version 2.0 or the MIT license, at your option.
https://doc.rust-lang.org/std/convert/trait.TryFrom.html