pub enum Highlight {
Show 16 variants
Black,
Blue,
Cyan,
DarkBlue,
DarkCyan,
DarkGray,
DarkGreen,
DarkMagenta,
DarkRed,
DarkYellow,
Green,
LightGray,
Magenta,
Red,
White,
Yellow,
}Expand description
A run’s text highlight color (<w:highlight w:val="..">, CT_Highlight, ST_HighlightColor) —
a fixed palette of “highlighter” colors applied as a background behind a run’s text, distinct
from Run.color (an arbitrary literal RGB text color) and from an arbitrary shaded background
fill (w:shd, not modeled).
ST_HighlightColor also defines the value "none", explicitly clearing any inherited
highlighting — not modeled as its own variant here, since Run.highlight: Option<Highlight>
already expresses “no highlight” via None (omitting w:highlight entirely achieves the same
visual result for a run with nothing to inherit from).
Variants§
Black
Blue
Cyan
DarkBlue
DarkCyan
DarkGray
DarkGreen
DarkMagenta
DarkRed
DarkYellow
Green
LightGray
Magenta
Red
White
Yellow
Implementations§
Trait Implementations§
impl Copy for Highlight
impl Eq for Highlight
impl StructuralPartialEq for Highlight
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.