Enum budvm::lexer_util::DecodeNumericError
source · pub enum DecodeNumericError {
Float(ParseFloatError),
Integer(ParseIntError),
}
Expand description
An error while decoding a numeric literal.
Variants§
Float(ParseFloatError)
An error from parsing a float value.
Integer(ParseIntError)
An error from parsing an integer value.
Implementations§
Trait Implementations§
source§impl Clone for DecodeNumericError
impl Clone for DecodeNumericError
source§fn clone(&self) -> DecodeNumericError
fn clone(&self) -> DecodeNumericError
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 DecodeNumericError
impl Debug for DecodeNumericError
source§impl Display for DecodeNumericError
impl Display for DecodeNumericError
source§impl Error for DecodeNumericError
impl Error for DecodeNumericError
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<DecodeNumericError> for AsmError
impl From<DecodeNumericError> for AsmError
source§fn from(err: DecodeNumericError) -> Self
fn from(err: DecodeNumericError) -> Self
Converts to this type from the input type.
source§impl From<ParseFloatError> for DecodeNumericError
impl From<ParseFloatError> for DecodeNumericError
source§fn from(err: ParseFloatError) -> Self
fn from(err: ParseFloatError) -> Self
Converts to this type from the input type.
source§impl From<ParseIntError> for DecodeNumericError
impl From<ParseIntError> for DecodeNumericError
source§fn from(err: ParseIntError) -> Self
fn from(err: ParseIntError) -> Self
Converts to this type from the input type.
source§impl PartialEq<DecodeNumericError> for DecodeNumericError
impl PartialEq<DecodeNumericError> for DecodeNumericError
source§fn eq(&self, other: &DecodeNumericError) -> bool
fn eq(&self, other: &DecodeNumericError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.