Struct hexplay::color::Spec [] [src]

pub struct Spec { /* fields omitted */ }

A color specification.

Methods

impl ColorSpec
[src]

[src]

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

[src]

Get the foreground color.

[src]

Set the foreground color.

[src]

Get the background color.

[src]

Set the background color.

[src]

Get whether this is bold or not.

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

[src]

Set whether the text is bolded or not.

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

[src]

Get whether this is underline or not.

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

[src]

Set whether the text is underlined or not.

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

[src]

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.

[src]

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.

[src]

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

[src]

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

Trait Implementations

impl Eq for ColorSpec
[src]

impl PartialEq<ColorSpec> for ColorSpec
[src]

[src]

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

[src]

This method tests for !=.

impl Clone for ColorSpec
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for ColorSpec
[src]

[src]

Formats the value using the given formatter. Read more

impl Default for ColorSpec
[src]

[src]

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

Auto Trait Implementations

impl Send for ColorSpec

impl Sync for ColorSpec