Enum cchmod::ParseError [−][src]
pub enum ParseError {
UnexpectedChar {
pos: usize,
c: char,
expected: Option<Vec<char>>,
},
UnexpectedEoi {
pos: usize,
},
}
Variants
UnexpectedChar
Fields
pos: usize
The position (zero-indexed) of the unexpected character.
c: char
The character encountered.
An unexpected character was encountered while parsing (e.g. an ‘r’ when an ‘x’ or ‘-’ was expected, or any character after EOI was expected).
UnexpectedEoi
Fields
pos: usize
The position (zero-indexed) where another character was expected.
End-of-input was encountered when more input was expected.
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.