Enum version_number::parsers::error::ParserError
source · pub enum ParserError {
Expected(ExpectedError),
Numeric(NumericError),
}
Expand description
Variants§
Expected(ExpectedError)
An error variant for fault when a some type of input, or none at all, was expected next.
Numeric(NumericError)
An error variant for faults when parsing and constructing a number.
Trait Implementations§
source§impl Clone for ParserError
impl Clone for ParserError
source§fn clone(&self) -> ParserError
fn clone(&self) -> ParserError
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 ParserError
impl Debug for ParserError
source§impl Display for ParserError
impl Display for ParserError
source§impl Error for ParserError
impl Error for ParserError
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<ExpectedError> for ParserError
impl From<ExpectedError> for ParserError
source§fn from(source: ExpectedError) -> Self
fn from(source: ExpectedError) -> Self
Converts to this type from the input type.
source§impl From<ModularParserError> for ParserError
impl From<ModularParserError> for ParserError
source§fn from(value: ModularParserError) -> Self
fn from(value: ModularParserError) -> Self
Converts to this type from the input type.
source§impl From<NumericError> for ParserError
impl From<NumericError> for ParserError
source§fn from(source: NumericError) -> Self
fn from(source: NumericError) -> Self
Converts to this type from the input type.
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.
source§impl From<ParserError> for Error
impl From<ParserError> for Error
source§fn from(source: ParserError) -> Self
fn from(source: ParserError) -> Self
Converts to this type from the input type.
source§impl PartialEq<ParserError> for ParserError
impl PartialEq<ParserError> for ParserError
source§fn eq(&self, other: &ParserError) -> bool
fn eq(&self, other: &ParserError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.