pub struct ConsoleColor {}Expand description
An implementation of Colorizer for ANSI terminal coloring.
Implementations§
Source§impl ConsoleColor
impl ConsoleColor
Trait Implementations§
Source§impl Clone for ConsoleColor
impl Clone for ConsoleColor
Source§fn clone(&self) -> ConsoleColor
fn clone(&self) -> ConsoleColor
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Colorizer for ConsoleColor
impl Colorizer for ConsoleColor
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 ConsoleColor
Source§impl Debug for ConsoleColor
impl Debug for ConsoleColor
Source§impl Default for ConsoleColor
impl Default for ConsoleColor
Source§fn default() -> ConsoleColor
fn default() -> ConsoleColor
Returns the “default value” for a type. Read more
impl Eq for ConsoleColor
Source§impl Hash for ConsoleColor
impl Hash for ConsoleColor
Source§impl PartialEq for ConsoleColor
impl PartialEq for ConsoleColor
impl StructuralPartialEq for ConsoleColor
Auto Trait Implementations§
impl Freeze for ConsoleColor
impl RefUnwindSafe for ConsoleColor
impl Send for ConsoleColor
impl Sync for ConsoleColor
impl Unpin for ConsoleColor
impl UnsafeUnpin for ConsoleColor
impl UnwindSafe for ConsoleColor
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