[][src]Struct terminal_color_builder::OutputColor

pub struct OutputColor { /* fields omitted */ }

Implementations

impl OutputColor[src]

OutputColor cannot be created on its own. Usage through OutputFormatter

pub fn black(&mut self) -> OutputFormatter[src]

Apply black to current context

pub fn red(&mut self) -> OutputFormatter[src]

Apply red to current context

pub fn green(&mut self) -> OutputFormatter[src]

Apply green to current context

pub fn yellow(&mut self) -> OutputFormatter[src]

Apply yellow to current context

pub fn blue(&mut self) -> OutputFormatter[src]

Apply blue to current context

pub fn magenta(&mut self) -> OutputFormatter[src]

Apply magenta to current context

pub fn cyan(&mut self) -> OutputFormatter[src]

Apply cyan to current context

pub fn white(&mut self) -> OutputFormatter[src]

Apply white to current context

pub fn hex(&mut self, color: &str) -> OutputFormatter[src]

Apply custom color by hex value to current context Example

use terminal_color_builder::*;
let white = OutputFormatter::new().fg().hex("#fff");
let rnd = OutputFormatter::new().fg().hex("#ab1346");

pub fn custom(&mut self, fg: COLORS, bg: COLORS) -> OutputFormatter[src]

Apply a custom foreground and background

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.