Struct text_style::Effects [−][src]
pub struct Effects { pub is_bold: bool, pub is_italic: bool, pub is_underline: bool, pub is_strikethrough: bool, }
Expand description
A set of text effects.
Fields
is_bold: bool
Whether the bold text effect is set.
is_italic: bool
Whether the italic text effect is set.
is_underline: bool
Whether the underline text effect is set.
is_strikethrough: bool
Whether the strikethrough text effect is set.
Implementations
Creates a set of text effects with only the given effect.
Combines this set of text effects with another set of text effects.
Trait Implementations
Performs the conversion.
fn from(effects: Effects) -> EffectsIterⓘNotable traits for EffectsIter
impl Iterator for EffectsIter type Item = Effect;
fn from(effects: Effects) -> EffectsIterⓘNotable traits for EffectsIter
impl Iterator for EffectsIter type Item = Effect;
Performs the conversion.
type IntoIter = EffectsIter
type IntoIter = EffectsIter
Which kind of iterator are we turning this into?
fn into_iter(self) -> EffectsIterⓘNotable traits for EffectsIter
impl Iterator for EffectsIter type Item = Effect;
fn into_iter(self) -> EffectsIterⓘNotable traits for EffectsIter
impl Iterator for EffectsIter type Item = Effect;
Creates an iterator from a value. Read more
Auto Trait Implementations
impl RefUnwindSafe for Effects
impl UnwindSafe for Effects
Blanket Implementations
Mutably borrows from an owned value. Read more
Calls the given closure and return the result. Read more
Calls the given closure on self
.