pub trait Highlighter<Input, Theme = Theme> { // Required methods fn id(&self) -> &str; fn highlight(&self, input: Input, theme: &Theme) -> Style; }
A type that describes how to highlight an Input with some Style.
Input
Style
A unique identifier for the highlighter.
Returns the Style of the given Input.