pub struct EnumParseError(pub &'static str);Expand description
Error returned when parsing an enum (EcLevel, Version, Mode) from a
string via FromStr. Carries a short static description of what was
expected.
Tuple Fields§
§0: &'static strTrait Implementations§
Source§impl Clone for EnumParseError
impl Clone for EnumParseError
Source§fn clone(&self) -> EnumParseError
fn clone(&self) -> EnumParseError
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 EnumParseError
Source§impl Debug for EnumParseError
impl Debug for EnumParseError
Source§impl Display for EnumParseError
impl Display for EnumParseError
impl Eq for EnumParseError
Source§impl Error for EnumParseError
impl Error for EnumParseError
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()
Source§impl PartialEq for EnumParseError
impl PartialEq for EnumParseError
Source§fn eq(&self, other: &EnumParseError) -> bool
fn eq(&self, other: &EnumParseError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for EnumParseError
Auto Trait Implementations§
impl Freeze for EnumParseError
impl RefUnwindSafe for EnumParseError
impl Send for EnumParseError
impl Sync for EnumParseError
impl Unpin for EnumParseError
impl UnsafeUnpin for EnumParseError
impl UnwindSafe for EnumParseError
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