Enum ParseErrorKind
#[non_exhaustive]pub enum ParseErrorKind {
Invalid(ValidationErrorKind),
InvalidName {
error: InvalidName,
kind: NameKind,
},
TooDeep,
Unexpected(Expected),
}Available on crate feature
parse only.Expand description
Why an interface definition couldn’t be parsed.
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.
Invalid(ValidationErrorKind)
The input is valid syntax but breaks a rule of the specification. The error points at the name that breaks the rule.
InvalidName
A name breaks the naming rules.
TooDeep
A type is nested more than 64 levels deep.
Unexpected(Expected)
The parser found something it didn’t expect.
Trait Implementations§
§impl Clone for ParseErrorKind
impl Clone for ParseErrorKind
§fn clone(&self) -> ParseErrorKind
fn clone(&self) -> ParseErrorKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ParseErrorKind
§impl Debug for ParseErrorKind
impl Debug for ParseErrorKind
impl Eq for ParseErrorKind
§impl PartialEq for ParseErrorKind
impl PartialEq for ParseErrorKind
impl StructuralPartialEq 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 UnsafeUnpin 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