Struct tutil::crayon::Style [] [src]

pub struct Style { /* fields omitted */ }

A collection of properties that are used to format a string.

Methods

impl Style
[src]

Creates a new Style without any formatting.

Applies the Style to a string, yielding a StyledString.

Sets the foreground to the given colour.

Sets the background to the given colour.

Applies the 'bold' property.

Applies the 'dimmed' property.

Applies the 'italic' property.

Applies the 'underline' property.

Applies the 'blink' property.

Applies the 'reverse' property.

Applies the 'hidden' property.

Trait Implementations

impl Debug for Style
[src]

Formats the value using the given formatter.

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 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