Struct version_number::parsers::original::OriginalParserError
source · pub struct OriginalParserError { /* private fields */ }
Expand description
The top-level error type for an orignal parser.
Implementations§
source§impl OriginalParserError
impl OriginalParserError
sourcepub fn reason(&self) -> &ErrorReason
pub fn reason(&self) -> &ErrorReason
The reason why the given input could not be parsed to a Version
.
Trait Implementations§
source§impl Clone for OriginalParserError
impl Clone for OriginalParserError
source§fn clone(&self) -> OriginalParserError
fn clone(&self) -> OriginalParserError
Returns a copy 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 OriginalParserError
impl Debug for OriginalParserError
source§impl Display for OriginalParserError
impl Display for OriginalParserError
source§impl Error for OriginalParserError
impl Error for OriginalParserError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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 From<OriginalParserError> for ParserError
impl From<OriginalParserError> for ParserError
source§fn from(value: OriginalParserError) -> Self
fn from(value: OriginalParserError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for OriginalParserError
impl RefUnwindSafe for OriginalParserError
impl Send for OriginalParserError
impl Sync for OriginalParserError
impl Unpin for OriginalParserError
impl UnwindSafe for OriginalParserError
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