#[repr(C, u8)]pub enum StyleVerticalAlign {
Baseline,
Top,
Middle,
Bottom,
Sub,
Superscript,
TextTop,
TextBottom,
Percentage(PercentageValue),
Length(PixelValue),
}Expand description
CSS 2.2 §10.8.1 vertical-align property values
Variants§
Baseline
CSS default - align baselines
Top
Align top of element with top of line box
Middle
Align middle of element with baseline + half x-height
Bottom
Align bottom of element with bottom of line box
Sub
Align baseline with parent’s subscript baseline
Superscript
Align baseline with parent’s superscript baseline
TextTop
Align top with top of parent’s font
TextBottom
Align bottom with bottom of parent’s font
Percentage(PercentageValue)
Length(PixelValue)
Trait Implementations§
Source§impl Clone for StyleVerticalAlign
impl Clone for StyleVerticalAlign
Source§fn clone(&self) -> StyleVerticalAlign
fn clone(&self) -> StyleVerticalAlign
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 StyleVerticalAlign
impl Debug for StyleVerticalAlign
Source§impl Default for StyleVerticalAlign
impl Default for StyleVerticalAlign
Source§fn default() -> StyleVerticalAlign
fn default() -> StyleVerticalAlign
Returns the “default value” for a type. Read more
Source§impl FormatAsRustCode for StyleVerticalAlign
impl FormatAsRustCode for StyleVerticalAlign
fn format_as_rust_code(&self, indent: usize) -> String
Source§impl From<StyleVerticalAlign> for CssProperty
impl From<StyleVerticalAlign> for CssProperty
Source§fn from(e: StyleVerticalAlign) -> Self
fn from(e: StyleVerticalAlign) -> Self
Converts to this type from the input type.
Source§impl Hash for StyleVerticalAlign
impl Hash for StyleVerticalAlign
Source§impl Ord for StyleVerticalAlign
impl Ord for StyleVerticalAlign
Source§fn cmp(&self, other: &StyleVerticalAlign) -> Ordering
fn cmp(&self, other: &StyleVerticalAlign) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for StyleVerticalAlign
impl PartialEq for StyleVerticalAlign
Source§fn eq(&self, other: &StyleVerticalAlign) -> bool
fn eq(&self, other: &StyleVerticalAlign) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for StyleVerticalAlign
impl PartialOrd for StyleVerticalAlign
Source§impl PrintAsCssValue for StyleVerticalAlign
impl PrintAsCssValue for StyleVerticalAlign
fn print_as_css_value(&self) -> String
impl Copy for StyleVerticalAlign
impl Eq for StyleVerticalAlign
impl StructuralPartialEq for StyleVerticalAlign
Auto Trait Implementations§
impl Freeze for StyleVerticalAlign
impl RefUnwindSafe for StyleVerticalAlign
impl Send for StyleVerticalAlign
impl Sync for StyleVerticalAlign
impl Unpin for StyleVerticalAlign
impl UnsafeUnpin for StyleVerticalAlign
impl UnwindSafe for StyleVerticalAlign
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