Skip to main content

Styler

Trait Styler 

Source
pub trait Styler {
    // Required method
    fn spans(&self, line: usize) -> Vec<StyleSpan>;
}
Expand description

Supplies syntax or semantic styling. Text outside every span gets style 0.

Required Methods§

Source

fn spans(&self, line: usize) -> Vec<StyleSpan>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§