pub struct Style(_);Expand description
A style is a structure which contains a flags about a ANSI styles where set.
Implementations§
source§impl Style
impl Style
sourcepub fn start(&self) -> AnsiSequenceStart<'_>
pub fn start(&self) -> AnsiSequenceStart<'_>
Returns a AnsiSequenceStart object which can be used to produce a ansi sequences which sets the grafic mode.
sourcepub fn end(&self) -> AnsiSequenceEnd<'_>
pub fn end(&self) -> AnsiSequenceEnd<'_>
Returns a AnsiSequenceEnd object which can be used to produce a ansi sequences which ends the grafic mode.
sourcepub fn foreground(&self) -> Option<Color>
pub fn foreground(&self) -> Option<Color>
Returns a foreground color if any was used.
sourcepub fn background(&self) -> Option<Color>
pub fn background(&self) -> Option<Color>
Returns a background color if any was used.
source§impl Style
impl Style
sourcepub fn is_underline(&self) -> bool
pub fn is_underline(&self) -> bool
Check whether a is_underline is set
sourcepub fn is_slow_blink(&self) -> bool
pub fn is_slow_blink(&self) -> bool
Check whether a is_slow_blink is set
sourcepub fn is_rapid_blink(&self) -> bool
pub fn is_rapid_blink(&self) -> bool
Check whether a is_rapid_blink is set
sourcepub fn is_inverse(&self) -> bool
pub fn is_inverse(&self) -> bool
Check whether a is_inverse is set
sourcepub fn is_crossedout(&self) -> bool
pub fn is_crossedout(&self) -> bool
Check whether a is_crossedout is set
sourcepub fn is_fraktur(&self) -> bool
pub fn is_fraktur(&self) -> bool
Check whether a is_fraktur is set
Trait Implementations§
source§impl Ord for Style
impl Ord for Style
source§impl PartialOrd<Style> for Style
impl PartialOrd<Style> for Style
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read more