pub enum ParseError {
Show 14 variants
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),
}Expand description
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§
Source§impl Debug for ParseError
impl Debug for ParseError
Source§impl Display for ParseError
impl Display for ParseError
Source§impl PartialEq for ParseError
impl PartialEq for ParseError
impl StructuralPartialEq for ParseError
Auto Trait Implementations§
impl Freeze for ParseError
impl RefUnwindSafe for ParseError
impl Send for ParseError
impl Sync for ParseError
impl Unpin for ParseError
impl UnsafeUnpin for ParseError
impl UnwindSafe for ParseError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more