pub struct UnknownStrictEnumMemberError(/* private fields */);
Expand description
Error returned by TryFrom on a strict enum if none of the members match the supplied value.
Implementations§
Source§impl UnknownStrictEnumMemberError
impl UnknownStrictEnumMemberError
Sourcepub fn new(unknown_value: i128) -> UnknownStrictEnumMemberError
pub fn new(unknown_value: i128) -> UnknownStrictEnumMemberError
Create a new error given an unknown value.
Trait Implementations§
Source§impl Debug for UnknownStrictEnumMemberError
impl Debug for UnknownStrictEnumMemberError
Source§impl Error for UnknownStrictEnumMemberError
impl Error for UnknownStrictEnumMemberError
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 UnknownStrictEnumMemberError
impl RefUnwindSafe for UnknownStrictEnumMemberError
impl Send for UnknownStrictEnumMemberError
impl Sync for UnknownStrictEnumMemberError
impl Unpin for UnknownStrictEnumMemberError
impl UnwindSafe for UnknownStrictEnumMemberError
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