Struct syntect::highlighting::StyleModifier [] [src]

pub struct StyleModifier {
    pub foreground: Option<Color>,
    pub background: Option<Color>,
    pub font_style: Option<FontStyle>,
}

A change to a Style applied incrementally by a theme rule.

Fields

Foreground color.

Background color.

Style of the font.

Methods

impl StyleModifier
[src]

Applies the other modifier to this one, creating a new modifier. Values in other are preferred.

Trait Implementations

impl Debug for StyleModifier
[src]

Formats the value using the given formatter.

impl Default for StyleModifier
[src]

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

impl Clone for StyleModifier
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for StyleModifier
[src]

impl PartialEq for StyleModifier
[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 StyleModifier
[src]