enum Class {
}Expand description
How a span of text is classified. Mostly corresponds to token kinds.
Variants
Comment
DocComment
Attribute
KeyWord
RefKeyWord
Self_(Span)
Op
Macro
MacroNonTerminal
String
Number
Bool
Ident(Span)
Lifetime
PreludeTy
PreludeVal
QuestionMark
Decoration(&'static str)
Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Class
impl UnwindSafe for Class
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more
Layout
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 24 bytes
Size for each variant:
Comment: 0 bytesDocComment: 0 bytesAttribute: 0 bytesKeyWord: 0 bytesRefKeyWord: 0 bytesSelf_: 8 bytesOp: 0 bytesMacro: 0 bytesMacroNonTerminal: 0 bytesString: 0 bytesNumber: 0 bytesBool: 0 bytesIdent: 8 bytesLifetime: 0 bytesPreludeTy: 0 bytesPreludeVal: 0 bytesQuestionMark: 0 bytesDecoration: 20 bytes