#[repr(C)]pub enum StyleVerticalAlign {
Baseline = 0,
Top = 1,
Middle = 2,
Bottom = 3,
Sub = 4,
Superscript = 5,
TextTop = 6,
TextBottom = 7,
}Expand description
Vertical text alignment enum (top, center, bottom) - default: Top
Variants§
Baseline = 0
CSS default - align baselines
Top = 1
Align top of element with top of line box
Middle = 2
Align middle of element with baseline + half x-height
Bottom = 3
Align bottom of element with bottom of line box
Sub = 4
Align baseline with parent’s subscript baseline
Superscript = 5
Align baseline with parent’s superscript baseline
TextTop = 6
Align top with top of parent’s font
TextBottom = 7
Align bottom with bottom of parent’s font
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 · 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§impl FormatAsRustCode for StyleVerticalAlign
impl FormatAsRustCode for StyleVerticalAlign
fn format_as_rust_code(&self, _: 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 · 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§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 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