pub enum VerticalAlignment {
Baseline,
Top,
Bottom,
Middle,
Sub,
Super,
TextTop,
TextBottom,
}Expand description
CSS vertical-align property values for inline formatting context.
Variants§
Baseline
Align the baseline of the element with the baseline of its parent box.
Top
Align the top of the element with the top of the entire line box.
Bottom
Align the bottom of the element with the bottom of the entire line box.
Middle
Align the vertical midpoint of the element with baseline + half x-height.
Sub
Subscript: Lower the baseline by ~20% of font size.
Super
Superscript: Raise the baseline by ~35% of font size.
TextTop
Align the top of the element with the top of the parent element’s font.
TextBottom
Align the bottom of the element with the bottom of the parent element’s font.
Trait Implementations§
Source§impl Clone for VerticalAlignment
impl Clone for VerticalAlignment
impl Copy for VerticalAlignment
Source§impl Debug for VerticalAlignment
impl Debug for VerticalAlignment
Source§impl Default for VerticalAlignment
impl Default for VerticalAlignment
impl Eq for VerticalAlignment
Source§impl PartialEq for VerticalAlignment
impl PartialEq for VerticalAlignment
impl StructuralPartialEq for VerticalAlignment
Auto Trait Implementations§
impl Forget for VerticalAlignment
impl Freeze for VerticalAlignment
impl Move for VerticalAlignment
impl RefUnwindSafe for VerticalAlignment
impl Send for VerticalAlignment
impl Sync for VerticalAlignment
impl Unpin for VerticalAlignment
impl UnsafeUnpin 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