pub enum CellVerticalAlign {
Top,
Center,
Bottom,
}Expand description
A table cell’s vertical alignment of its content (w:tcPr/w:vAlign, CT_VerticalJc,
ST_VerticalJc) — where the cell’s paragraphs sit within the cell’s full height, when that
height exceeds the content’s natural height (e.g. because a neighboring cell in the same row is
taller, or TableRow.height_twips forces extra height). Distinct from
Paragraph.alignment/Table.alignment (both horizontal).
Variants§
Implementations§
Source§impl CellVerticalAlign
impl CellVerticalAlign
Sourcepub fn attribute_value(self) -> &'static str
pub fn attribute_value(self) -> &'static str
This vertical alignment’s w:vAlign/val value (ST_VerticalJc).
Sourcepub fn from_attribute_value(value: &str) -> Option<CellVerticalAlign>
pub fn from_attribute_value(value: &str) -> Option<CellVerticalAlign>
Parses a w:vAlign/val value (ST_VerticalJc) back into a CellVerticalAlign, or
None for an unrecognized value.
Trait Implementations§
Source§impl Clone for CellVerticalAlign
impl Clone for CellVerticalAlign
Source§fn clone(&self) -> CellVerticalAlign
fn clone(&self) -> CellVerticalAlign
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 CellVerticalAlign
Source§impl Debug for CellVerticalAlign
impl Debug for CellVerticalAlign
impl Eq for CellVerticalAlign
Source§impl PartialEq for CellVerticalAlign
impl PartialEq for CellVerticalAlign
impl StructuralPartialEq for CellVerticalAlign
Auto Trait Implementations§
impl Freeze for CellVerticalAlign
impl RefUnwindSafe for CellVerticalAlign
impl Send for CellVerticalAlign
impl Sync for CellVerticalAlign
impl Unpin for CellVerticalAlign
impl UnsafeUnpin for CellVerticalAlign
impl UnwindSafe for CellVerticalAlign
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.