Struct ansi_term::Style [] [src]

pub struct Style { /* fields omitted */ }

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

Methods

impl Style
[src]

[src]

Creates a new Style with no differences.

[src]

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

[src]

The prefix for this style.

[src]

The suffix for this style.

[src]

The infix between this style and another.

[src]

Returns a Style with the bold property set.

[src]

Returns a Style with the dimmed property set.

[src]

Returns a Style with the italic property set.

[src]

Returns a Style with the underline property set.

Returns a Style with the blink property set.

[src]

Returns a Style with the reverse property set.

[src]

Returns a Style with the hidden property set.

[src]

Returns a Style with the hidden property set.

[src]

Returns a Style with the foreground colour property set.

[src]

Returns a Style with the background colour property set.

Trait Implementations

impl PartialEq for Style
[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 Style
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for Style
[src]

impl Debug for Style
[src]

[src]

Formats the value using the given formatter.

impl Default for Style
[src]

[src]

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