pub trait Token: Spanned + Sized {
const PUNCT_KINDS: &'static [PunctKind];
const NOT_FOLLOWED_BY: &'static [PunctKind];
// Required methods
fn new(span: Span) -> Self;
fn ident(&self) -> Ident;
}
Expand description
The type is a token.
Required Associated Constants§
Sourceconst PUNCT_KINDS: &'static [PunctKind]
const PUNCT_KINDS: &'static [PunctKind]
The sequence of punctuations that make up the token.
Sourceconst NOT_FOLLOWED_BY: &'static [PunctKind]
const NOT_FOLLOWED_BY: &'static [PunctKind]
Punctuations that will not follow the token.
Required Methods§
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.