Enum piston_meta::ParseError [] [src]

pub enum ParseError {
    ExpectedWhitespace(DebugId),
    ExpectedNewLine(DebugId),
    ExpectedSomething(DebugId),
    ExpectedNumber(DebugId),
    ParseNumberError(ParseNumberError, DebugId),
    ExpectedText(DebugId),
    EmptyTextNotAllowed(DebugId),
    ParseStringError(ParseStringError, DebugId),
    ExpectedTag(Arc<String>, DebugId),
    DidNotExpectTag(Arc<String>, DebugId),
    InvalidRule(&'static strDebugId),
    NoRules,
    ExpectedEnd,
    Conversion(String),
}

Errors reporting expected values.

Variants

ExpectedWhitespace(DebugId)

Whitespace is required.

ExpectedNewLine(DebugId)

New line is required.

ExpectedSomething(DebugId)

Something is required.

ExpectedNumber(DebugId)

Expected number.

ParseNumberError(ParseNumberError, DebugId)

Error when parsing float.

ExpectedText(DebugId)

Expected text.

EmptyTextNotAllowed(DebugId)

Empty text not allowed.

ParseStringError(ParseStringError, DebugId)

Invalid string format.

ExpectedTag(Arc<String>, DebugId)

Expected token.

DidNotExpectTag(Arc<String>, DebugId)

Did not expected token.

InvalidRule(&'static strDebugId)

An invalid rule.

NoRules

No rules are specified.

ExpectedEnd

Expected to reach the end.

Conversion(String)

Conversion error.

Trait Implementations

impl PartialEq for ParseError
[src]

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

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

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

This method tests for !=.

impl Debug for ParseError
[src]

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

Formats the value using the given formatter.

impl Display for ParseError
[src]

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

Formats the value using the given formatter.