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