pub trait TokenRole:
Copy
+ Eq
+ Send {
// Required methods
fn universal(&self) -> UniversalTokenRole;
fn name(&self) -> &str;
}Expand description
A trait for types that can represent a token’s syntactic role.
Required Methods§
Sourcefn universal(&self) -> UniversalTokenRole
fn universal(&self) -> UniversalTokenRole
Maps this role to a universal, language-agnostic role.
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.