pub struct ColorSpec { /* fields omitted */ }
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.
This method tests for self
and other
values to be equal, and is used by ==
. Read more
This method tests for !=
.
Performs copy-assignment from source
. Read more
Returns the "default value" for a type. Read more
Formats the value using the given formatter. Read more
Creates owned data from borrowed data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static