pub trait TokenTrait: Sized {
// Required method
fn token(&self) -> Option<SemanticTokenType>;
// Provided method
fn span_tokens(
Spanned: &Spanned<Self>,
) -> Vec<(SemanticTokenType, Range<usize>)> { ... }
}
Required Methods§
fn token(&self) -> Option<SemanticTokenType>
Provided Methods§
fn span_tokens( Spanned: &Spanned<Self>, ) -> Vec<(SemanticTokenType, Range<usize>)>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.