pub enum TryFromError {
u32(&'static str, u32),
u16(&'static str, u16),
u8(&'static str, u8),
usize(&'static str, usize),
}Expand description
Error produced by the enum try_from macros
Variants§
u32(&'static str, u32)
A u32 value (second field) is out of range for the named enum (first field).
u16(&'static str, u16)
A u16 value (second field) is out of range for the named enum (first field).
u8(&'static str, u8)
A u8 value (second field) is out of range for the named enum (first field).
usize(&'static str, usize)
A usize value (second field) is out of range for the named enum (first field).
Trait Implementations§
Source§impl Clone for TryFromError
impl Clone for TryFromError
Source§fn clone(&self) -> TryFromError
fn clone(&self) -> TryFromError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TryFromError
impl Debug for TryFromError
Source§impl Display for TryFromError
impl Display for TryFromError
Source§impl Error for TryFromError
impl Error for TryFromError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for TryFromError
impl RefUnwindSafe for TryFromError
impl Send for TryFromError
impl Sync for TryFromError
impl Unpin for TryFromError
impl UnsafeUnpin for TryFromError
impl UnwindSafe for TryFromError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more