Skip to main content

Themed

Trait Themed 

Source
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§

Source

fn ty(&self) -> Decorated<'_, Self>

Source

fn target(&self) -> Decorated<'_, Self>

Source

fn keyword(&self) -> Decorated<'_, Self>

Source

fn symbol(&self) -> Decorated<'_, Self>

Source

fn at_symbol(&self) -> Decorated<'_, Self>

Source

fn comment(&self) -> Decorated<'_, Self>

Source

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.

Implementors§

Source§

impl<T: Display> Themed for T