pub struct Modifiers {
pub bold: bool,
pub italic: bool,
pub underline: bool,
pub dim: bool,
pub reverse: bool,
}Expand description
Text-attribute modifiers. Bools rather than bitflags so a new modifier (strikethrough, blink, …) is a struct-field add instead of a flag-byte expansion; the renderers’ adapter code pattern-matches against the explicit field set rather than chasing flag bits.
Fields§
§bold: bool§italic: bool§underline: bool§dim: bool§reverse: boolTrait Implementations§
impl Copy for Modifiers
impl Eq for Modifiers
impl StructuralPartialEq for Modifiers
Auto Trait Implementations§
impl Freeze for Modifiers
impl RefUnwindSafe for Modifiers
impl Send for Modifiers
impl Sync for Modifiers
impl Unpin for Modifiers
impl UnsafeUnpin for Modifiers
impl UnwindSafe for Modifiers
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more