#[repr(C)]pub enum StyleDominantBaseline {
Auto = 0,
TextBottom = 1,
Alphabetic = 2,
Ideographic = 3,
Middle = 4,
Central = 5,
Mathematical = 6,
Hanging = 7,
TextTop = 8,
}Expand description
Represents the dominant-baseline CSS property.
Specifies the dominant baseline used to align inline-level contents.
Variants§
Auto = 0
Use the dominant baseline of the parent
TextBottom = 1
Use the text-under baseline
Alphabetic = 2
Use the alphabetic baseline
Ideographic = 3
Use the ideographic baseline
Middle = 4
Use the middle baseline
Central = 5
Use the central baseline
Mathematical = 6
Use the mathematical baseline
Hanging = 7
Use the hanging baseline
TextTop = 8
Use the text-over baseline
Trait Implementations§
Source§impl Clone for StyleDominantBaseline
impl Clone for StyleDominantBaseline
Source§fn clone(&self) -> StyleDominantBaseline
fn clone(&self) -> StyleDominantBaseline
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 StyleDominantBaseline
impl Debug for StyleDominantBaseline
Source§impl Default for StyleDominantBaseline
impl Default for StyleDominantBaseline
Source§fn default() -> StyleDominantBaseline
fn default() -> StyleDominantBaseline
Returns the “default value” for a type. Read more
Source§impl FormatAsRustCode for StyleDominantBaseline
impl FormatAsRustCode for StyleDominantBaseline
fn format_as_rust_code(&self, _tabs: usize) -> String
Source§impl From<StyleDominantBaseline> for CssProperty
impl From<StyleDominantBaseline> for CssProperty
Source§fn from(e: StyleDominantBaseline) -> Self
fn from(e: StyleDominantBaseline) -> Self
Converts to this type from the input type.
Source§impl Hash for StyleDominantBaseline
impl Hash for StyleDominantBaseline
Source§impl Ord for StyleDominantBaseline
impl Ord for StyleDominantBaseline
Source§fn cmp(&self, other: &StyleDominantBaseline) -> Ordering
fn cmp(&self, other: &StyleDominantBaseline) -> 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 StyleDominantBaseline
impl PartialEq for StyleDominantBaseline
Source§fn eq(&self, other: &StyleDominantBaseline) -> bool
fn eq(&self, other: &StyleDominantBaseline) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for StyleDominantBaseline
impl PartialOrd for StyleDominantBaseline
Source§impl PrintAsCssValue for StyleDominantBaseline
impl PrintAsCssValue for StyleDominantBaseline
fn print_as_css_value(&self) -> String
impl Copy for StyleDominantBaseline
impl Eq for StyleDominantBaseline
impl StructuralPartialEq for StyleDominantBaseline
Auto Trait Implementations§
impl Freeze for StyleDominantBaseline
impl RefUnwindSafe for StyleDominantBaseline
impl Send for StyleDominantBaseline
impl Sync for StyleDominantBaseline
impl Unpin for StyleDominantBaseline
impl UnsafeUnpin for StyleDominantBaseline
impl UnwindSafe for StyleDominantBaseline
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