pub enum NameKind {
Ident,
TypeName,
FieldNumber,
}Available on crate feature
text only.Expand description
Secondary classification of a TokenKind::Name token.
Variants§
Ident
Bare identifier: foo_bar.
TypeName
Bracketed type name: [pkg.ext] or [type.googleapis.com/pkg.Msg].
The brackets are included in raw.
FieldNumber
Decimal integer used as a field number: 42.
Trait Implementations§
impl Copy for NameKind
impl Eq for NameKind
impl StructuralPartialEq for NameKind
Auto Trait Implementations§
impl Forget for NameKind
impl Freeze for NameKind
impl Move for NameKind
impl RefUnwindSafe for NameKind
impl Send for NameKind
impl Sync for NameKind
impl Unpin for NameKind
impl UnsafeUnpin for NameKind
impl UnwindSafe for NameKind
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