Trait ThemeColors

Source
pub trait ThemeColors {
    // Required methods
    fn color_numeric_value<S: Display>(&self, text: S) -> ColoredString;
    fn color_invalid<S: Display>(&self, text: S) -> ColoredString;
    fn color_string_value<S: Display>(&self, text: S) -> ColoredString;
    fn color_type_name<S: Display>(&self, text: S) -> ColoredString;
    fn color_variable_name<S: Display>(&self, text: S) -> ColoredString;
    fn color_enum_member<S: Display>(&self, text: S) -> ColoredString;
    fn color_url<S: Display>(&self, text: S) -> ColoredString;
    fn color_function<S: Display>(&self, text: S) -> ColoredString;
    fn color_info<S: Display>(&self, text: S) -> ColoredString;
}

Required Methods§

Source

fn color_numeric_value<S: Display>(&self, text: S) -> ColoredString

Source

fn color_invalid<S: Display>(&self, text: S) -> ColoredString

Source

fn color_string_value<S: Display>(&self, text: S) -> ColoredString

Source

fn color_type_name<S: Display>(&self, text: S) -> ColoredString

Source

fn color_variable_name<S: Display>(&self, text: S) -> ColoredString

Source

fn color_enum_member<S: Display>(&self, text: S) -> ColoredString

Source

fn color_url<S: Display>(&self, text: S) -> ColoredString

Source

fn color_function<S: Display>(&self, text: S) -> ColoredString

Source

fn color_info<S: Display>(&self, text: S) -> ColoredString

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§