[−][src]Struct terminal_color_builder::OutputColor
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
impl RefUnwindSafe for OutputColor
impl Send for OutputColor
impl Sync for OutputColor
impl Unpin for OutputColor
impl UnwindSafe for OutputColor
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,