Struct ptree::style::Style[][src]

pub struct Style {
    pub foreground: Option<Color>,
    pub background: Option<Color>,
    pub bold: bool,
    pub dimmed: bool,
    pub italic: bool,
    pub underline: bool,
    pub blink: bool,
    pub reverse: bool,
    pub hidden: bool,
    pub strikethrough: bool,
}

Terminal output style

Fields

The style's foreground colour, if it has one.

The style's background colour, if it has one.

Whether this style is bold.

Whether this style is dimmed.

Whether this style is italic.

Whether this style is underlined.

Whether this style is blinking.

Whether this style has reverse colours.

Whether this style is hidden.

Whether this style is struckthrough.

Methods

impl Style
[src]

Paints input according to this style.

If the "ansi" feature is enabled, this function uses ansi_term to style text.

If the "ansi" feature is disabled, this function always returns the output unchanged.

Trait Implementations

impl Clone for Style
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Style
[src]

Formats the value using the given formatter. 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 Eq for Style
[src]

impl Default for Style
[src]

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

Auto Trait Implementations

impl Send for Style

impl Sync for Style