pub trait Colorizer {
Show 32 methods
// Required method
fn colorize<S>(&self, el: LanguageElement, value: S) -> String
where S: AsRef<str>;
// Provided methods
fn comment<S>(&self, value: S) -> String
where S: AsRef<str> { ... }
fn constant<S>(&self, value: S) -> String
where S: AsRef<str> { ... }
fn constant_definition<S>(&self, value: S) -> String
where S: AsRef<str> { ... }
fn embedded<S>(&self, value: S) -> String
where S: AsRef<str> { ... }
fn error<S>(&self, value: S) -> String
where S: AsRef<str> { ... }
fn function<S>(&self, value: S) -> String
where S: AsRef<str> { ... }
fn function_call<S>(&self, value: S) -> String
where S: AsRef<str> { ... }
fn function_definition<S>(&self, value: S) -> String
where S: AsRef<str> { ... }
fn keyword<S>(&self, value: S) -> String
where S: AsRef<str> { ... }
fn boolean<S>(&self, value: S) -> String
where S: AsRef<str> { ... }
fn number<S>(&self, value: S) -> String
where S: AsRef<str> { ... }
fn string<S>(&self, value: S) -> String
where S: AsRef<str> { ... }
fn string_special<S>(&self, value: S) -> String
where S: AsRef<str> { ... }
fn url<S>(&self, value: S) -> String
where S: AsRef<str> { ... }
fn operator<S>(&self, value: S) -> String
where S: AsRef<str> { ... }
fn method<S>(&self, value: S) -> String
where S: AsRef<str> { ... }
fn method_definition<S>(&self, value: S) -> String
where S: AsRef<str> { ... }
fn module<S>(&self, value: S) -> String
where S: AsRef<str> { ... }
fn module_definition<S>(&self, value: S) -> String
where S: AsRef<str> { ... }
fn property<S>(&self, value: S) -> String
where S: AsRef<str> { ... }
fn property_definitions<S>(&self, value: S) -> String
where S: AsRef<str> { ... }
fn punctuation<S>(&self, value: S) -> String
where S: AsRef<str> { ... }
fn bracket<S>(&self, value: S) -> String
where S: AsRef<str> { ... }
fn delimiter<S>(&self, value: S) -> String
where S: AsRef<str> { ... }
fn separator<S>(&self, value: S) -> String
where S: AsRef<str> { ... }
fn type_ref<S>(&self, value: S) -> String
where S: AsRef<str> { ... }
fn type_builtin<S>(&self, value: S) -> String
where S: AsRef<str> { ... }
fn type_definition<S>(&self, value: S) -> String
where S: AsRef<str> { ... }
fn variable<S>(&self, value: S) -> String
where S: AsRef<str> { ... }
fn variable_field<S>(&self, value: S) -> String
where S: AsRef<str> { ... }
fn variable_parameter<S>(&self, value: S) -> String
where S: AsRef<str> { ... }
}Expand description
This trait is implemented by format-specific providers.
Required Methods§
Provided Methods§
fn comment<S>(&self, value: S) -> String
fn constant<S>(&self, value: S) -> String
fn constant_definition<S>(&self, value: S) -> String
fn embedded<S>(&self, value: S) -> String
fn error<S>(&self, value: S) -> String
fn function<S>(&self, value: S) -> String
fn function_call<S>(&self, value: S) -> String
fn function_definition<S>(&self, value: S) -> String
fn keyword<S>(&self, value: S) -> String
fn boolean<S>(&self, value: S) -> String
fn number<S>(&self, value: S) -> String
fn string<S>(&self, value: S) -> String
fn string_special<S>(&self, value: S) -> String
fn url<S>(&self, value: S) -> String
fn operator<S>(&self, value: S) -> String
fn method<S>(&self, value: S) -> String
fn method_definition<S>(&self, value: S) -> String
fn module<S>(&self, value: S) -> String
fn module_definition<S>(&self, value: S) -> String
fn property<S>(&self, value: S) -> String
fn property_definitions<S>(&self, value: S) -> String
fn punctuation<S>(&self, value: S) -> String
fn bracket<S>(&self, value: S) -> String
fn delimiter<S>(&self, value: S) -> String
fn separator<S>(&self, value: S) -> String
fn type_ref<S>(&self, value: S) -> String
fn type_builtin<S>(&self, value: S) -> String
fn type_definition<S>(&self, value: S) -> String
fn variable<S>(&self, value: S) -> String
fn variable_field<S>(&self, value: S) -> String
fn variable_parameter<S>(&self, value: S) -> String
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".