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 str, DebugId), 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 str, DebugId)
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]
impl Display for ParseError
[src]
fn fmt(&self, fmt: &mut Formatter) -> Result<(), FormatError>
Formats the value using the given formatter.