pub enum VerticalAlignment {
Top,
Middle,
Bottom,
}Expand description
Determines how content of cells should be aligned vertically.
This is useful when cells in the same row have different heights (e.g., one cell has multi-line content while another has single-line content).
+--------+-----+ +--------+-----+ +--------+-----+
| Line 1 | Top | | Line 1 | | | Line 1 | |
| Line 2 | | | Line 2 | Mid | | Line 2 | |
| Line 3 | | | Line 3 | | | Line 3 | Bot |
+--------+-----+ +--------+-----+ +--------+-----+Variants§
Top
Content is aligned to the top of the cell (default)
Middle
Content is centered vertically in the cell
Bottom
Content is aligned to the bottom of the cell
Trait Implementations§
Source§impl Clone for VerticalAlignment
impl Clone for VerticalAlignment
Source§fn clone(&self) -> VerticalAlignment
fn clone(&self) -> VerticalAlignment
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for VerticalAlignment
impl Debug for VerticalAlignment
Source§impl Default for VerticalAlignment
impl Default for VerticalAlignment
Source§fn default() -> VerticalAlignment
fn default() -> VerticalAlignment
Returns the “default value” for a type. Read more
Source§impl Hash for VerticalAlignment
impl Hash for VerticalAlignment
Source§impl PartialEq for VerticalAlignment
impl PartialEq for VerticalAlignment
impl Copy for VerticalAlignment
impl Eq for VerticalAlignment
impl StructuralPartialEq for VerticalAlignment
Auto Trait Implementations§
impl Freeze for VerticalAlignment
impl RefUnwindSafe for VerticalAlignment
impl Send for VerticalAlignment
impl Sync for VerticalAlignment
impl Unpin for VerticalAlignment
impl UnwindSafe for VerticalAlignment
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