Struct ansi_term::Style [] [src]

pub struct Style {
    // some fields omitted
}

A style is a collection of properties that can format a string using ANSI escape codes.

Methods

impl Style
[src]

Creates a new Style with no differences.

Paints the given text with this colour, returning an ANSI string.

Returns a Style with the bold property set.

Returns a Style with the dimmed property set.

Returns a Style with the italic property set.

Returns a Style with the underline property set.

Returns a Style with the blink property set.

Returns a Style with the reverse property set.

Returns a Style with the hidden property set.

Returns a Style with the hidden property set.

Returns a Style with the foreground colour property set.

Returns a Style with the background colour property set.

Trait Implementations

impl Debug for Style
[src]

Formats the value using the given formatter.

impl Copy for Style
[src]

impl Clone for Style
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for Style
[src]

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

This method tests for !=.

impl Default for Style
[src]

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