pub trait Token: Sealed {
// Required methods
#[doc(hidden)] fn peek(cursor: Cursor<'_>) -> bool;
#[doc(hidden)] fn display() -> &'static str;
}Available on crate feature
parsing only.Expand description
Marker trait for types that represent single tokens.
This trait is sealed and cannot be implemented for types outside of Syn.
Required Methods§
#[doc(hidden)]fn peek(cursor: Cursor<'_>) -> bool
#[doc(hidden)]fn display() -> &'static str
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.