pub enum DominantBaselineStyleValue {
Auto(Ident),
TextBottom(Ident),
Alphabetic(Ident),
Ideographic(Ident),
Middle(Ident),
Central(Ident),
Mathematical(Ident),
Hanging(Ident),
TextTop(Ident),
}Expand description
Represents the style value for dominant-baseline as defined in css-inline-3.
The dominant-baseline CSS property sets the specific baseline used to align an elements’s text and inline-level contents.
The grammar is defined as:
auto | text-bottom | alphabetic | ideographic | middle | central | mathematical | hanging | text-topVariants§
Auto(Ident)
TextBottom(Ident)
Alphabetic(Ident)
Ideographic(Ident)
Middle(Ident)
Central(Ident)
Mathematical(Ident)
Hanging(Ident)
TextTop(Ident)
Trait Implementations§
Source§impl Clone for DominantBaselineStyleValue
impl Clone for DominantBaselineStyleValue
Source§fn clone(&self) -> DominantBaselineStyleValue
fn clone(&self) -> DominantBaselineStyleValue
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 DominantBaselineStyleValue
impl Debug for DominantBaselineStyleValue
Source§impl Hash for DominantBaselineStyleValue
impl Hash for DominantBaselineStyleValue
Source§impl Ord for DominantBaselineStyleValue
impl Ord for DominantBaselineStyleValue
Source§fn cmp(&self, other: &DominantBaselineStyleValue) -> Ordering
fn cmp(&self, other: &DominantBaselineStyleValue) -> 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<'a> Parse<'a> for DominantBaselineStyleValue
impl<'a> Parse<'a> for DominantBaselineStyleValue
Source§impl PartialOrd for DominantBaselineStyleValue
impl PartialOrd for DominantBaselineStyleValue
Source§impl<'a> Peek<'a> for DominantBaselineStyleValue
impl<'a> Peek<'a> for DominantBaselineStyleValue
Source§impl ToCursors for DominantBaselineStyleValue
impl ToCursors for DominantBaselineStyleValue
fn to_cursors(&self, s: &mut impl CursorSink)
impl Eq for DominantBaselineStyleValue
impl StructuralPartialEq for DominantBaselineStyleValue
Auto Trait Implementations§
impl Freeze for DominantBaselineStyleValue
impl RefUnwindSafe for DominantBaselineStyleValue
impl Send for DominantBaselineStyleValue
impl Sync for DominantBaselineStyleValue
impl Unpin for DominantBaselineStyleValue
impl UnwindSafe for DominantBaselineStyleValue
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