pub enum UnderlineStyle {
Show 17 variants
Single,
Words,
Double,
Thick,
Dotted,
DottedHeavy,
Dash,
DashedHeavy,
DashLong,
DashLongHeavy,
DotDash,
DashDotHeavy,
DotDotDash,
DashDotDotHeavy,
Wave,
WavyHeavy,
WavyDouble,
}Expand description
A run’s underline style (<w:u w:val="..">, CT_Underline, ST_Underline) — the pattern of
the line drawn beneath a run’s text (single, double, thick, dotted, dashed, wavy, and
combinations of those), distinct from Run.underline_color (the line’s color, a separate
attribute on the same w:u element).
ST_Underline also defines the value "none", explicitly clearing any inherited underline —
not modeled as its own variant here, since Run.underline: Option<UnderlineStyle> already
expresses “no underline” via None (omitting w:u entirely achieves the same visual result for
a run with nothing to inherit from), same convention as Highlight’s own "none" value and
VerticalAlign’s "baseline".
Variants§
Single
Words
Double
Thick
Dotted
DottedHeavy
Dash
DashedHeavy
DashLong
DashLongHeavy
DotDash
DashDotHeavy
DotDotDash
DashDotDotHeavy
Wave
WavyHeavy
WavyDouble
Implementations§
Source§impl UnderlineStyle
impl UnderlineStyle
Sourcepub fn attribute_value(self) -> &'static str
pub fn attribute_value(self) -> &'static str
This underline style’s w:u/val value (ST_Underline).
Sourcepub fn from_attribute_value(value: &str) -> Option<UnderlineStyle>
pub fn from_attribute_value(value: &str) -> Option<UnderlineStyle>
Parses a w:u/val value (ST_Underline) back into an UnderlineStyle, or None for
"none" or an unrecognized value.
Trait Implementations§
Source§impl Clone for UnderlineStyle
impl Clone for UnderlineStyle
Source§fn clone(&self) -> UnderlineStyle
fn clone(&self) -> UnderlineStyle
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for UnderlineStyle
Source§impl Debug for UnderlineStyle
impl Debug for UnderlineStyle
impl Eq for UnderlineStyle
Source§impl PartialEq for UnderlineStyle
impl PartialEq for UnderlineStyle
impl StructuralPartialEq for UnderlineStyle
Auto Trait Implementations§
impl Freeze for UnderlineStyle
impl RefUnwindSafe for UnderlineStyle
impl Send for UnderlineStyle
impl Sync for UnderlineStyle
impl Unpin for UnderlineStyle
impl UnsafeUnpin for UnderlineStyle
impl UnwindSafe for UnderlineStyle
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
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
key and return true if they are equal.