Struct cursive_core::theme::Style
source ·
[−]pub struct Style {
pub effects: EnumSet<Effect>,
pub color: ColorStyle,
}
Expand description
Combine a color and an effect.
Represents any transformation that can be applied to text.
Fields
effects: EnumSet<Effect>
Effect to apply.
None
to keep using previous effects.
color: ColorStyle
Color style to apply.
None
to keep using the previous colors.
Implementations
Returns a new Style
by merging all given styles.
Will use the last non-None
color, and will combine all effects.
Trait Implementations
Performs the conversion.
Performs the conversion.
Creates a new Style
by merging all given styles.
Will use the last non-None
color, and will combine all effects.
Creates a new Style
by merging all given styles.
Will use the last non-None
color, and will combine all effects.
Creates a value from an iterator. Read more
Auto Trait Implementations
impl RefUnwindSafe for Style
impl UnwindSafe for Style
Blanket Implementations
Mutably borrows from an owned value. Read more