Struct termcolor::ColorSpec [] [src]

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 intense or not.

Set whether the text is intense or not.

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 Clone for ColorSpec
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for ColorSpec
[src]

Formats the value using the given formatter.

impl Default for ColorSpec
[src]

Returns the "default value" for a type. Read more

impl Eq for ColorSpec
[src]

impl PartialEq for ColorSpec
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.