pub struct EnumFromIntError(pub i32);Expand description
The error type returned when unable to convert an integer to an enum value.
Tuple Fields§
§0: i32Trait Implementations§
Source§impl Clone for EnumFromIntError
impl Clone for EnumFromIntError
Source§fn clone(&self) -> EnumFromIntError
fn clone(&self) -> EnumFromIntError
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 moreimpl Copy for EnumFromIntError
Source§impl Debug for EnumFromIntError
impl Debug for EnumFromIntError
Source§impl Display for EnumFromIntError
Available on try_from and crate feature std only.
impl Display for EnumFromIntError
Available on
try_from and crate feature std only.impl Eq for EnumFromIntError
Source§impl PartialEq for EnumFromIntError
impl PartialEq for EnumFromIntError
Source§fn eq(&self, other: &EnumFromIntError) -> bool
fn eq(&self, other: &EnumFromIntError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for EnumFromIntError
Auto Trait Implementations§
impl Freeze for EnumFromIntError
impl RefUnwindSafe for EnumFromIntError
impl Send for EnumFromIntError
impl Sync for EnumFromIntError
impl Unpin for EnumFromIntError
impl UnsafeUnpin for EnumFromIntError
impl UnwindSafe for EnumFromIntError
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