pub enum TableCellVerticalAlignment {
Top,
Middle,
Bottom,
Baseline,
Fill,
IntrinsicHeight,
}Expand description
Vertical alignment options for cells in RenderTable objects.
This is specified using TableCellParentData objects on the parent data of the children
of the RenderTable.
Variants§
Top
Cells with this alignment are placed with their top at the top of the row.
Middle
Cells with this alignment are vertically centered in the row.
Bottom
Cells with this alignment are placed with their bottom at the bottom of the row.
Baseline
Cells with this alignment are aligned such that they all share the same baseline. Cells
with no baseline are top-aligned instead. The baseline used is specified by
RenderTable::text_baseline. It is not valid to use the baseline value if
RenderTable::text_baseline is not specified.
This vertical alignment is relatively expensive because it causes the table to compute the baseline for each cell in the row.
Fill
Cells with this alignment are sized to be as tall as the row, then made to fit the row. If all the cells have this alignment, then the row will have zero height.
IntrinsicHeight
Cells with this alignment are sized to be the same height as the tallest cell in the row.
Trait Implementations§
Source§impl Clone for TableCellVerticalAlignment
impl Clone for TableCellVerticalAlignment
impl Copy for TableCellVerticalAlignment
Source§impl Debug for TableCellVerticalAlignment
impl Debug for TableCellVerticalAlignment
Source§impl Default for TableCellVerticalAlignment
impl Default for TableCellVerticalAlignment
impl Eq for TableCellVerticalAlignment
Source§impl Hash for TableCellVerticalAlignment
impl Hash for TableCellVerticalAlignment
impl StructuralPartialEq for TableCellVerticalAlignment
Auto Trait Implementations§
impl Freeze for TableCellVerticalAlignment
impl RefUnwindSafe for TableCellVerticalAlignment
impl Send for TableCellVerticalAlignment
impl Sync for TableCellVerticalAlignment
impl Unpin for TableCellVerticalAlignment
impl UnsafeUnpin for TableCellVerticalAlignment
impl UnwindSafe for TableCellVerticalAlignment
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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.