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

[src]

impl Copy for Style
[src]

impl Debug for Style
[src]

[src]

Formats the value using the given formatter.

impl PartialEq<Style> for Style
[src]

[src]

[src]

impl Default for Style
[src]