pub struct TextPaintStyle {
pub fg: Option<Color>,
pub bg: Option<Color>,
pub underline: Option<UnderlineStyle>,
pub strikethrough: Option<StrikethroughStyle>,
}Fields§
§fg: Option<Color>§bg: Option<Color>§underline: Option<UnderlineStyle>§strikethrough: Option<StrikethroughStyle>Implementations§
Source§impl TextPaintStyle
impl TextPaintStyle
pub fn with_fg(self, fg: Color) -> Self
pub fn with_bg(self, bg: Color) -> Self
pub fn with_underline(self, underline: UnderlineStyle) -> Self
pub fn with_strikethrough(self, strikethrough: StrikethroughStyle) -> Self
Trait Implementations§
Source§impl Clone for TextPaintStyle
impl Clone for TextPaintStyle
Source§fn clone(&self) -> TextPaintStyle
fn clone(&self) -> TextPaintStyle
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TextPaintStyle
impl Debug for TextPaintStyle
Source§impl Default for TextPaintStyle
impl Default for TextPaintStyle
Source§fn default() -> TextPaintStyle
fn default() -> TextPaintStyle
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TextPaintStyle
impl<'de> Deserialize<'de> for TextPaintStyle
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for TextPaintStyle
impl PartialEq for TextPaintStyle
Source§impl Serialize for TextPaintStyle
impl Serialize for TextPaintStyle
impl StructuralPartialEq for TextPaintStyle
Auto Trait Implementations§
impl Freeze for TextPaintStyle
impl RefUnwindSafe for TextPaintStyle
impl Send for TextPaintStyle
impl Sync for TextPaintStyle
impl Unpin for TextPaintStyle
impl UnsafeUnpin for TextPaintStyle
impl UnwindSafe for TextPaintStyle
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