Enum cargo_platform::ParseErrorKind
source · #[non_exhaustive]pub enum ParseErrorKind {
UnterminatedString,
UnexpectedChar(char),
UnexpectedToken {
expected: &'static str,
found: &'static str,
},
IncompleteExpr(&'static str),
UnterminatedExpression(String),
InvalidTarget(String),
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
UnterminatedString
UnexpectedChar(char)
UnexpectedToken
IncompleteExpr(&'static str)
UnterminatedExpression(String)
InvalidTarget(String)
Trait Implementations§
source§impl Debug for ParseErrorKind
impl Debug for ParseErrorKind
Auto Trait Implementations§
impl Freeze for ParseErrorKind
impl RefUnwindSafe for ParseErrorKind
impl Send for ParseErrorKind
impl Sync for ParseErrorKind
impl Unpin for ParseErrorKind
impl UnwindSafe for ParseErrorKind
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