#[non_exhaustive]pub enum VerticalAlign {
Baseline,
Bottom,
Middle,
Sub,
Super,
TextBottom,
TextTop,
Top,
Length(Length),
Percentage(Percentage),
}Expand description
A value of vertical-align.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Baseline
baseline.
Bottom
bottom.
Middle
middle.
Sub
sub.
Super
super.
TextBottom
text-bottom.
TextTop
text-top.
Top
top.
Length(Length)
A length.
Percentage(Percentage)
A percentage.
Trait Implementations§
Source§impl Clone for VerticalAlign
impl Clone for VerticalAlign
Source§fn clone(&self) -> VerticalAlign
fn clone(&self) -> VerticalAlign
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 moreSource§impl Debug for VerticalAlign
impl Debug for VerticalAlign
Source§impl Display for VerticalAlign
impl Display for VerticalAlign
Source§impl From<Length> for VerticalAlign
impl From<Length> for VerticalAlign
Source§impl From<Percentage> for VerticalAlign
impl From<Percentage> for VerticalAlign
Source§fn from(v: Percentage) -> Self
fn from(v: Percentage) -> Self
Converts to this type from the input type.
Source§impl PartialEq for VerticalAlign
impl PartialEq for VerticalAlign
impl StructuralPartialEq for VerticalAlign
Auto Trait Implementations§
impl Freeze for VerticalAlign
impl RefUnwindSafe for VerticalAlign
impl Send for VerticalAlign
impl Sync for VerticalAlign
impl Unpin for VerticalAlign
impl UnsafeUnpin for VerticalAlign
impl UnwindSafe for VerticalAlign
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