Struct term_painter::Style
source · pub struct Style {
pub fg: Color,
pub bg: Color,
/* private fields */
}
Expand description
Saves all properties of a style. Implements ToStyle
, so you can call
style modifiers on it.
Fields§
§fg: Color
§bg: Color
Implementations§
source§impl Style
impl Style
pub fn get_bold(&self) -> Option<bool>
pub fn set_bold(&mut self, v: Option<bool>)
pub fn get_dim(&self) -> Option<bool>
pub fn set_dim(&mut self, v: Option<bool>)
pub fn get_underline(&self) -> Option<bool>
pub fn set_underline(&mut self, v: Option<bool>)
pub fn get_blink(&self) -> Option<bool>
pub fn set_blink(&mut self, v: Option<bool>)
pub fn get_reverse(&self) -> Option<bool>
pub fn set_reverse(&mut self, v: Option<bool>)
pub fn get_secure(&self) -> Option<bool>
pub fn set_secure(&mut self, v: Option<bool>)
Trait Implementations§
source§impl PartialEq for Style
impl PartialEq for Style
source§impl ToStyle for Style
impl ToStyle for Style
source§fn to_mapped_style<F>(self, func: F) -> Style
fn to_mapped_style<F>(self, func: F) -> Style
Convenience method for modifying the style before it’s returned.
source§fn not_underline(self) -> Style
fn not_underline(self) -> Style
Removes underline-attribute.
impl Copy for Style
impl Eq for Style
impl StructuralPartialEq for Style
Auto Trait Implementations§
impl RefUnwindSafe for Style
impl Send for Style
impl Sync for Style
impl Unpin for Style
impl UnwindSafe for Style
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