Enum Expected
#[non_exhaustive]pub enum Expected {
Arrow,
Colon,
CommaOrCloseParen,
FieldName,
Interface,
InterfaceName,
Member,
Name,
OpenParen,
Type,
}Available on crate feature
parse only.Expand description
What the parser expected where it found something else.
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.
Arrow
->.
Colon
:.
CommaOrCloseParen
, or ).
FieldName
A field or variant name.
Interface
The interface keyword.
InterfaceName
An interface name.
Member
type, method or error.
Name
A type, method or error name.
OpenParen
(.
Type
A type.
Trait Implementations§
impl Copy for Expected
impl Eq for Expected
impl StructuralPartialEq for Expected
Auto Trait Implementations§
impl Freeze for Expected
impl RefUnwindSafe for Expected
impl Send for Expected
impl Sync for Expected
impl Unpin for Expected
impl UnsafeUnpin for Expected
impl UnwindSafe for Expected
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