pub trait Themed: Display + Sized {
// Provided methods
fn ty(&self) -> Decorated<'_, Self> { ... }
fn target(&self) -> Decorated<'_, Self> { ... }
fn keyword(&self) -> Decorated<'_, Self> { ... }
fn symbol(&self) -> Decorated<'_, Self> { ... }
fn at_symbol(&self) -> Decorated<'_, Self> { ... }
fn comment(&self) -> Decorated<'_, Self> { ... }
fn instruction(&self) -> Decorated<'_, Self> { ... }
}Provided Methods§
fn ty(&self) -> Decorated<'_, Self>
fn target(&self) -> Decorated<'_, Self>
fn keyword(&self) -> Decorated<'_, Self>
fn symbol(&self) -> Decorated<'_, Self>
fn at_symbol(&self) -> Decorated<'_, Self>
fn comment(&self) -> Decorated<'_, Self>
fn instruction(&self) -> Decorated<'_, Self>
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.