pub struct Style {
pub foreground: Option<Rgb>,
pub font_style: FontStyle,
}Expand description
Resolved style for a token.
Fields§
§foreground: Option<Rgb>Optional foreground color.
font_style: FontStyleFont style flags.
Implementations§
Source§impl Style
impl Style
Sourcepub fn strikethrough(self) -> Self
pub fn strikethrough(self) -> Self
Returns this style with strikethrough enabled.
Trait Implementations§
impl Copy for Style
impl Eq for Style
impl StructuralPartialEq for Style
Auto Trait Implementations§
impl Freeze for Style
impl RefUnwindSafe for Style
impl Send for Style
impl Sync for Style
impl Unpin for Style
impl UnsafeUnpin 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