pub enum TabStopAlignment {
Left,
Center,
Right,
Decimal,
Bar,
}Expand description
How text is aligned relative to a TabStop (w:tab/@val, ST_TabJc).
ST_TabJc also defines clear (removes an inherited tab stop from a base style, not meaningful
when authoring a fresh document) and num (a legacy “list tab” tied to outline numbering) —
neither modeled here, same scope reduction as elsewhere in this crate.
Variants§
Implementations§
Source§impl TabStopAlignment
impl TabStopAlignment
Sourcepub fn attribute_value(self) -> &'static str
pub fn attribute_value(self) -> &'static str
This alignment’s w:tab/val value (ST_TabJc).
Sourcepub fn from_attribute_value(value: &str) -> Option<TabStopAlignment>
pub fn from_attribute_value(value: &str) -> Option<TabStopAlignment>
Parses a w:tab/val value (ST_TabJc) back into a TabStopAlignment, or None for
clear/num/an unrecognized value.
Trait Implementations§
Source§impl Clone for TabStopAlignment
impl Clone for TabStopAlignment
Source§fn clone(&self) -> TabStopAlignment
fn clone(&self) -> TabStopAlignment
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TabStopAlignment
Source§impl Debug for TabStopAlignment
impl Debug for TabStopAlignment
impl Eq for TabStopAlignment
Source§impl PartialEq for TabStopAlignment
impl PartialEq for TabStopAlignment
impl StructuralPartialEq for TabStopAlignment
Auto Trait Implementations§
impl Freeze for TabStopAlignment
impl RefUnwindSafe for TabStopAlignment
impl Send for TabStopAlignment
impl Sync for TabStopAlignment
impl Unpin for TabStopAlignment
impl UnsafeUnpin for TabStopAlignment
impl UnwindSafe for TabStopAlignment
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.