Struct ethcore_util::log::Style []

pub struct Style { /* fields omitted */ }

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

Methods

impl Style

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 background colour property set.

Trait Implementations

impl Default for Style

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

impl Copy for Style

impl PartialEq<Style> for Style

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

This method tests for !=.

impl Debug for Style

Formats the value using the given formatter.

impl Clone for Style

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more