pub enum ParseCodeError {
Alpha(String),
Num(u32),
}Expand description
An error which can be returned when parsing &str or u32.
Variants§
Trait Implementations§
Source§impl Clone for ParseCodeError
impl Clone for ParseCodeError
Source§fn clone(&self) -> ParseCodeError
fn clone(&self) -> ParseCodeError
Returns a duplicate of the value. Read more
1.0.0 · 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 ParseCodeError
impl Debug for ParseCodeError
Source§impl Display for ParseCodeError
impl Display for ParseCodeError
Source§impl Error for ParseCodeError
impl Error for ParseCodeError
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 ParseCodeError
impl PartialEq for ParseCodeError
impl StructuralPartialEq for ParseCodeError
Auto Trait Implementations§
impl Freeze for ParseCodeError
impl RefUnwindSafe for ParseCodeError
impl Send for ParseCodeError
impl Sync for ParseCodeError
impl Unpin for ParseCodeError
impl UnwindSafe for ParseCodeError
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