Enum read_token::ParseStringError [] [src]

pub enum ParseStringError {
    ExpectedFourHexadecimals(Range),
    ExpectedHexadecimal(Range),
    ExpectedValidUnicode(Range),
    ExpectedValidEscapeCharacter(Range),
}

Contains errors when parsing a string.

Variants

ExpectedFourHexadecimals(Range)

Expected four hexadecimals, found less characters

ExpectedHexadecimal(Range)

Expected character 0-9a-fA-F

ExpectedValidUnicode(Range)

Found four hexadecimals, but not an invalid unicode character

ExpectedValidEscapeCharacter(Range)

A character escape \x is invalid

Methods

impl ParseStringError
[src]

fn range(&self) -> Range

Gets the range of the error.

Trait Implementations

impl PartialEq for ParseStringError
[src]

fn eq(&self, __arg_0: &ParseStringError) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, __arg_0: &ParseStringError) -> bool

This method tests for !=.

impl Eq for ParseStringError
[src]

impl Debug for ParseStringError
[src]

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

Formats the value using the given formatter.

impl Clone for ParseStringError
[src]

fn clone(&self) -> ParseStringError

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 ParseStringError
[src]

impl Display for ParseStringError
[src]

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

Formats the value using the given formatter.