Enum scan_rules::scanner::util::EscapeError
[−]
[src]
pub enum EscapeError { LoneSlash, UnknownEscape(char), MalformedHex, MalformedUnicode, InvalidValue, }
Indicates why unescaping a character from a string failed.
Variants
LoneSlash
Backslash with nothing after it.
UnknownEscape(char)
Backslash followed by unrecognised character.
MalformedHex
Malformed hex escape sequence.
MalformedUnicode
Malformed unicode escape sequence.
InvalidValue
Escape contained an invalid value.
Trait Implementations
impl Debug for EscapeError
[src]
impl PartialEq for EscapeError
[src]
fn eq(&self, __arg_0: &EscapeError) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &EscapeError) -> bool
This method tests for !=
.
impl Eq for EscapeError
[src]
impl Clone for EscapeError
[src]
fn clone(&self) -> EscapeError
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