pub struct Highlight {
pub foreground: Option<Color>,
pub background: Option<Color>,
pub style: Vec<StyleAttribute>,
}Expand description
Highlight definition.
Contains foreground and background colors as well as the style to use.
Fields§
§foreground: Option<Color>Foreground color.
Leaving it empty implies using the default foreground color of your terminal
background: Option<Color>Background color.
Leaving it empty implies using the default background color of your terminal
style: Vec<StyleAttribute>Style attributes to use.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Highlight
impl<'de> Deserialize<'de> for Highlight
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
Auto Trait Implementations§
impl Freeze for Highlight
impl RefUnwindSafe for Highlight
impl Send for Highlight
impl Sync for Highlight
impl Unpin for Highlight
impl UnsafeUnpin for Highlight
impl UnwindSafe for Highlight
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