Struct TryFromIntError
pub struct TryFromIntError(pub(crate) IntErrorKind);
The error type returned when a checked integral type conversion fails.
Fields
0: IntErrorKind
Implementations
impl TryFromIntError
const fn kind(&self) -> &IntErrorKindOutputs the detailed cause of converting an integer failing.
Trait Implementations
impl Clone for TryFromIntError
fn clone(&self) -> TryFromIntError
impl Copy for TryFromIntError
impl Debug for TryFromIntError
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Display for TryFromIntError
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Eq for TryFromIntError
fn assert_fields_are_eq(&self)
impl Error for TryFromIntError
impl From<Infallible> for TryFromIntError
fn from(x: Infallible) -> TryFromIntError
impl From<never> for TryFromIntError
fn from(never: never) -> TryFromIntError
impl PartialEq for TryFromIntError
fn eq(&self, other: &TryFromIntError) -> bool
impl StructuralPartialEq for TryFromIntError
impl TrivialClone for TryFromIntError
Auto Trait Implementations
impl Freeze for TryFromIntError
impl RefUnwindSafe for TryFromIntError
impl Send for TryFromIntError
impl Sync for TryFromIntError
impl Unpin for TryFromIntError
impl UnsafeUnpin for TryFromIntError
impl UnwindSafe for TryFromIntError
Blanket Implementations
impl<T> Any for TryFromIntError
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for TryFromIntError
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for TryFromIntError
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for TryFromIntError
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for TryFromIntError
fn from(t: T) -> TReturns the argument unchanged.
impl<T> From<never> for TryFromIntError
fn from(t: never) -> T
impl<T> Printable for TryFromIntError
where
T: Copy + Debug,
impl<T> SizeHint for TryFromIntError
where
T: ?Sized,
fn lower_bound(&self) -> usizefn upper_bound(&self) -> Option<usize>
impl<T> SizedTypeProperties for TryFromIntError
impl<T, U> Into<U> for TryFromIntError
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for TryFromIntError
where
U: Into<T>,
type Error = Infallible;fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto<U> for TryFromIntError
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>