pub enum ErrorKind {
UnexpectedChar,
UnexpectedCloseParen,
UnexpectedCloseBracket,
UnexpectedCloseBrace,
UnclosedTuple,
UnclosedList,
UnclosedBlock,
UnclosedString,
UnclosedComment,
BadEscape,
RawNewlineInString,
DanglingSigil,
}Variants§
UnexpectedChar
A character that cannot begin an item (e.g. a lone /).
UnexpectedCloseParen
A ) with no matching (.
UnexpectedCloseBracket
A ] with no matching [.
UnexpectedCloseBrace
A } with no matching {.
UnclosedTuple
A ( whose ) never arrived before end of input.
UnclosedList
A [ whose ] never arrived before end of input.
UnclosedBlock
A { whose } never arrived before end of input.
UnclosedString
A " whose closing " never arrived before end of input.
UnclosedComment
A /* whose */ never arrived before end of input.
BadEscape
A \ followed by a character other than " n t r \ / b f, or a \u
not followed by exactly four hex digits.
RawNewlineInString
A literal newline inside a string literal.
DanglingSigil
A & sigil not immediately followed by an item.
Trait Implementations§
impl Eq for ErrorKind
impl StructuralPartialEq for ErrorKind
Auto Trait Implementations§
impl Freeze for ErrorKind
impl RefUnwindSafe for ErrorKind
impl Send for ErrorKind
impl Sync for ErrorKind
impl Unpin for ErrorKind
impl UnsafeUnpin for ErrorKind
impl UnwindSafe for ErrorKind
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