[−][src]Struct console::StyledObject
A formatting wrapper that can be styled for a terminal.
Methods
impl<D> StyledObject<D>
[src]
impl<D> StyledObject<D>
pub fn force_styling(self, value: bool) -> StyledObject<D> | [src] |
Forces styling on or off.
This overrides the detection from clicolors-control
.
pub fn fg(self, color: Color) -> StyledObject<D> | [src] |
Sets a foreground color.
pub fn bg(self, color: Color) -> StyledObject<D> | [src] |
Sets a background color.
pub fn attr(self, attr: Attribute) -> StyledObject<D> | [src] |
Adds a attr.
pub fn black(self) -> StyledObject<D> | [src] |
pub fn red(self) -> StyledObject<D> | [src] |
pub fn green(self) -> StyledObject<D> | [src] |
pub fn yellow(self) -> StyledObject<D> | [src] |
pub fn blue(self) -> StyledObject<D> | [src] |
pub fn magenta(self) -> StyledObject<D> | [src] |
pub fn cyan(self) -> StyledObject<D> | [src] |
pub fn white(self) -> StyledObject<D> | [src] |
pub fn on_black(self) -> StyledObject<D> | [src] |
pub fn on_red(self) -> StyledObject<D> | [src] |
pub fn on_green(self) -> StyledObject<D> | [src] |
pub fn on_yellow(self) -> StyledObject<D> | [src] |
pub fn on_blue(self) -> StyledObject<D> | [src] |
pub fn on_magenta(self) -> StyledObject<D> | [src] |
pub fn on_cyan(self) -> StyledObject<D> | [src] |
pub fn on_white(self) -> StyledObject<D> | [src] |
pub fn bold(self) -> StyledObject<D> | [src] |
pub fn dim(self) -> StyledObject<D> | [src] |
pub fn italic(self) -> StyledObject<D> | [src] |
pub fn underlined(self) -> StyledObject<D> | [src] |
pub fn blink(self) -> StyledObject<D> | [src] |
pub fn reverse(self) -> StyledObject<D> | [src] |
Trait Implementations
impl<D: Clone> Clone for StyledObject<D>
[src]
impl<D: Clone> Clone for StyledObject<D>
fn clone(&self) -> StyledObject<D> | [src] |
fn clone_from(&mut self, source: &Self) | 1.0.0 [src] |
Performs copy-assignment from source
. Read more
impl<D: Binary> Binary for StyledObject<D>
[src]
impl<D: Binary> Binary for StyledObject<D>
impl<D: Debug> Debug for StyledObject<D>
[src]
impl<D: Debug> Debug for StyledObject<D>
impl<D: LowerExp> LowerExp for StyledObject<D>
[src]
impl<D: LowerExp> LowerExp for StyledObject<D>
impl<D: Display> Display for StyledObject<D>
[src]
impl<D: Display> Display for StyledObject<D>
impl<D: UpperHex> UpperHex for StyledObject<D>
[src]
impl<D: UpperHex> UpperHex for StyledObject<D>
impl<D: Pointer> Pointer for StyledObject<D>
[src]
impl<D: Pointer> Pointer for StyledObject<D>
impl<D: LowerHex> LowerHex for StyledObject<D>
[src]
impl<D: LowerHex> LowerHex for StyledObject<D>
impl<D: Octal> Octal for StyledObject<D>
[src]
impl<D: Octal> Octal for StyledObject<D>
impl<D: UpperExp> UpperExp for StyledObject<D>
[src]
impl<D: UpperExp> UpperExp for StyledObject<D>
Auto Trait Implementations
impl<D> Send for StyledObject<D> where
D: Send,
impl<D> Send for StyledObject<D> where
D: Send,
impl<D> Sync for StyledObject<D> where
D: Sync,
impl<D> Sync for StyledObject<D> where
D: Sync,
Blanket Implementations
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
impl<T> ToString for T where
T: Display + ?Sized,
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error> | [src] |
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T | [src] |
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error> | [src] |
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId | [src] |
impl<T> Erased for T
impl<T> Erased for T