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
sourceimpl Debug for ParseErrorKind
impl Debug for ParseErrorKind
Auto Trait Implementations
impl RefUnwindSafe for ParseErrorKind
impl Send for ParseErrorKind
impl Sync for ParseErrorKind
impl Unpin for ParseErrorKind
impl UnwindSafe for ParseErrorKind
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more