pub enum VerticalAlign {
Superscript,
Subscript,
}Expand description
A run’s vertical alignment (<w:vertAlign w:val="..">, CT_VerticalAlignRun,
ST_VerticalAlignRun) — superscript or subscript text, rendered smaller and shifted above/below
the normal baseline without otherwise altering the run’s own font size.
ST_VerticalAlignRun also defines the value "baseline", the normal, non-shifted position —
not modeled as its own variant here, since Run.vertical_align: Option<VerticalAlign> already
expresses “normal position” via None (omitting w:vertAlign entirely achieves the same visual
result for a run with nothing to inherit from), same convention as Highlight’s own "none"
value.
Variants§
Implementations§
Source§impl VerticalAlign
impl VerticalAlign
Sourcepub fn attribute_value(self) -> &'static str
pub fn attribute_value(self) -> &'static str
This vertical alignment’s w:vertAlign/val value (ST_VerticalAlignRun).
Sourcepub fn from_attribute_value(value: &str) -> Option<VerticalAlign>
pub fn from_attribute_value(value: &str) -> Option<VerticalAlign>
Parses a w:vertAlign/val value (ST_VerticalAlignRun) back into a VerticalAlign, or
None for "baseline" or an unrecognized value.
Trait Implementations§
Source§impl Clone for VerticalAlign
impl Clone for VerticalAlign
Source§fn clone(&self) -> VerticalAlign
fn clone(&self) -> VerticalAlign
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 VerticalAlign
Source§impl Debug for VerticalAlign
impl Debug for VerticalAlign
impl Eq for VerticalAlign
Source§impl PartialEq for VerticalAlign
impl PartialEq for VerticalAlign
impl StructuralPartialEq for VerticalAlign
Auto Trait Implementations§
impl Freeze for VerticalAlign
impl RefUnwindSafe for VerticalAlign
impl Send for VerticalAlign
impl Sync for VerticalAlign
impl Unpin for VerticalAlign
impl UnsafeUnpin for VerticalAlign
impl UnwindSafe for VerticalAlign
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.