Skip to main content

RustToken

Type Alias RustToken 

Source
pub type RustToken = Token<RustTokenType>;
Expand description

Rust 语言的标记

Aliased Type§

pub struct RustToken {
    pub kind: RustTokenType,
    pub span: Range<usize>,
}

Fields§

§kind: RustTokenType

The kind/category of this kind (e.g., keyword, identifier, number)

§span: Range<usize>

The byte range in the source text that this kind occupies