Enum esparse::lex::ParseStrLitError
[−]
[src]
pub enum ParseStrLitError { InvalidEscape, }
An error type for parsing string literals.
Returned by str_lit_value when the given string literal is syntactically invalid.
Variants
InvalidEscape
The string literal contains an invalid escape sequence.
Note that \c
, where c is not a SingleEscapeCharacter, is not an invalid escape sequence. For example, "\a"
is a valid string literal with the value "a"
.
Trait Implementations
impl Debug for ParseStrLitError
[src]
impl Clone for ParseStrLitError
[src]
fn clone(&self) -> ParseStrLitError
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Eq for ParseStrLitError
[src]
impl PartialEq for ParseStrLitError
[src]
fn eq(&self, __arg_0: &ParseStrLitError) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.
impl Hash for ParseStrLitError
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more