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]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

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

impl Copy for EscapeError
[src]

impl Display for EscapeError
[src]

fn fmt(&self, fmt: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Error for EscapeError
[src]

fn description(&self) -> &str

A short description of the error. Read more

fn cause(&self) -> Option<&Error>
1.0.0

The lower-level cause of this error, if any. Read more