pub struct HtmlColor {}Expand description
An implementation of Colorizer for HTML pre>code spans.
Trait Implementations§
Source§impl Colorizer for HtmlColor
impl Colorizer for HtmlColor
Source§fn colorize<S>(&self, el: LanguageElement, value: S) -> String
fn colorize<S>(&self, el: LanguageElement, value: S) -> String
Colorize the
value according to the language element type el.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
impl Copy for HtmlColor
impl Eq for HtmlColor
impl StructuralPartialEq for HtmlColor
Auto Trait Implementations§
impl Freeze for HtmlColor
impl RefUnwindSafe for HtmlColor
impl Send for HtmlColor
impl Sync for HtmlColor
impl Unpin for HtmlColor
impl UnsafeUnpin for HtmlColor
impl UnwindSafe for HtmlColor
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more