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: Option<Color>
Foreground color.
background: Option<Color>
Background color.
font_style: Option<FontStyle>
Style of the font.
Methods
impl StyleModifier
[src]
fn apply(&self, other: StyleModifier) -> StyleModifier
Applies the other modifier to this one, creating a new modifier.
Values in other
are preferred.
Trait Implementations
impl Debug for StyleModifier
[src]
impl Default for StyleModifier
[src]
fn default() -> StyleModifier
Returns the "default value" for a type. Read more
impl Clone for StyleModifier
[src]
fn clone(&self) -> StyleModifier
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Copy for StyleModifier
[src]
impl PartialEq for StyleModifier
[src]
fn eq(&self, __arg_0: &StyleModifier) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &StyleModifier) -> bool
This method tests for !=
.