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]

Creates a new Style with no differences.

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

The prefix for this style.

The suffix for this style.

The infix between this style and another.

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for Style
[src]

impl Debug for Style
[src]

Formats the value using the given formatter.

impl Default for Style
[src]

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