pub trait TokenLike: Clone {
// Required methods
fn kind(&self) -> SyntaxKind;
fn text(&self) -> TokenText<'_>;
fn text_range(&self) -> NodeSpan;
}
Required Methods§
fn kind(&self) -> SyntaxKind
fn text(&self) -> TokenText<'_>
fn text_range(&self) -> NodeSpan
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.