pub trait TokenTrait: PartialEq {
// Provided method
fn is_skippable(&self) -> bool { ... }
}
Expand description
PartialEq is required for comparing tokens with TokenReader::expect_next
Provided Methods§
Sourcefn is_skippable(&self) -> bool
fn is_skippable(&self) -> bool
Use this for nully tokens. Will be skipped under TokenReader::expect_next
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.