[][src]Struct termcolor::ColorSpec

pub struct ColorSpec { /* fields omitted */ }

A color specification.

Methods

impl ColorSpec
[src]

Create a new color specification that has no colors or styles.

Get the foreground color.

Set the foreground color.

Get the background color.

Set the background color.

Get whether this is bold or not.

Note that the bold setting has no effect in a Windows console.

Set whether the text is bolded or not.

Note that the bold setting has no effect in a Windows console.

Get whether this is underline or not.

Note that the underline setting has no effect in a Windows console.

Set whether the text is underlined or not.

Note that the underline setting has no effect in a Windows console.

Get whether this is intense or not.

On Unix-like systems, this will output the ANSI escape sequence that will print a high-intensity version of the color specified.

On Windows systems, this will output the ANSI escape sequence that will print a brighter version of the color specified.

Set whether the text is intense or not.

On Unix-like systems, this will output the ANSI escape sequence that will print a high-intensity version of the color specified.

On Windows systems, this will output the ANSI escape sequence that will print a brighter version of the color specified.

Returns true if this color specification has no colors or styles.

Clears this color specification so that it has no color/style settings.

Trait Implementations

impl PartialEq<ColorSpec> for ColorSpec
[src]

impl Clone for ColorSpec
[src]

Performs copy-assignment from source. Read more

impl Eq for ColorSpec
[src]

impl Default for ColorSpec
[src]

impl Debug for ColorSpec
[src]

Auto Trait Implementations

impl Send for ColorSpec

impl Sync for ColorSpec

Blanket Implementations

impl<T> From for T
[src]

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

impl<T> ToOwned for T where
    T: Clone
[src]

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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