pub enum TokenKind {
Show 43 variants
Include,
CppInclude,
Namespace,
Const,
Typedef,
Enum,
Struct,
Union,
Exception,
Service,
Required,
Optional,
Oneway,
Void,
Throws,
Extends,
Map,
Set,
List,
CppType,
Assign,
Colon,
Less,
Greater,
Lparen,
Rparen,
Lbrace,
Rbrace,
Lbrack,
Rbrack,
Comment(String),
BlockComment(String),
PoundComment(String),
IntConstant(String),
DoubleConstant(String),
NamespaceScope(String),
BaseType(String),
Literal(String),
Identifier(String),
ListSeparator(char),
Invalid(char),
InvalidString(String),
Eof,
}Expand description
Represents the kind of a Thrift token.
Variants§
Include
CppInclude
Namespace
Const
Typedef
Enum
Struct
Union
Exception
Service
Required
Optional
Oneway
Void
Throws
Extends
Map
Set
List
CppType
Assign
Colon
Less
Greater
Lparen
Rparen
Lbrace
Rbrace
Lbrack
Rbrack
Comment(String)
BlockComment(String)
PoundComment(String)
IntConstant(String)
DoubleConstant(String)
NamespaceScope(String)
BaseType(String)
Literal(String)
Identifier(String)
ListSeparator(char)
Invalid(char)
InvalidString(String)
Eof
Implementations§
Trait Implementations§
impl StructuralPartialEq for TokenKind
Auto Trait Implementations§
impl Freeze for TokenKind
impl RefUnwindSafe for TokenKind
impl Send for TokenKind
impl Sync for TokenKind
impl Unpin for TokenKind
impl UnsafeUnpin for TokenKind
impl UnwindSafe for TokenKind
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