Enum budvm::lexer_util::DecodeStringError
source · pub enum DecodeStringError {
InvalidHexadecimalCharacter(usize),
InvalidUnicodeCodepoint {
codepoint: u32,
range: Range<usize>,
},
InvalidUnicodeEscape(usize),
EndQuoteNotFound,
}
Expand description
An error while decoding the contents of a string literal.
Variants§
InvalidHexadecimalCharacter(usize)
An invalid hexadecimal character was encountered at the given offset.
InvalidUnicodeCodepoint
An invalid unicode codepoint was encountered.
InvalidUnicodeEscape(usize)
An invalid character was encountered while parsing a unicode escape.
EndQuoteNotFound
The end double-quote character was not found.
Implementations§
Trait Implementations§
source§impl Clone for DecodeStringError
impl Clone for DecodeStringError
source§fn clone(&self) -> DecodeStringError
fn clone(&self) -> DecodeStringError
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 DecodeStringError
impl Debug for DecodeStringError
source§impl Display for DecodeStringError
impl Display for DecodeStringError
source§impl Error for DecodeStringError
impl Error for DecodeStringError
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<DecodeStringError> for AsmError
impl From<DecodeStringError> for AsmError
source§fn from(err: DecodeStringError) -> Self
fn from(err: DecodeStringError) -> Self
Converts to this type from the input type.
source§impl PartialEq<DecodeStringError> for DecodeStringError
impl PartialEq<DecodeStringError> for DecodeStringError
source§fn eq(&self, other: &DecodeStringError) -> bool
fn eq(&self, other: &DecodeStringError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.