pub enum BaselineShiftStyleValue {
LengthPercentage(LengthPercentage),
Sub(Ident),
Super(Ident),
Top(Ident),
Center(Ident),
Bottom(Ident),
}Expand description
Represents the style value for baseline-shift as defined in css-inline-3.
The baseline-shift CSS property sets the position of an element relative to its dominant baseline.
The grammar is defined as:
<length-percentage> | sub | super | top | center | bottomVariants§
Trait Implementations§
Source§impl Clone for BaselineShiftStyleValue
impl Clone for BaselineShiftStyleValue
Source§fn clone(&self) -> BaselineShiftStyleValue
fn clone(&self) -> BaselineShiftStyleValue
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 BaselineShiftStyleValue
impl Debug for BaselineShiftStyleValue
Source§impl Hash for BaselineShiftStyleValue
impl Hash for BaselineShiftStyleValue
Source§impl Ord for BaselineShiftStyleValue
impl Ord for BaselineShiftStyleValue
Source§fn cmp(&self, other: &BaselineShiftStyleValue) -> Ordering
fn cmp(&self, other: &BaselineShiftStyleValue) -> 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 BaselineShiftStyleValue
impl<'a> Parse<'a> for BaselineShiftStyleValue
Source§impl PartialEq for BaselineShiftStyleValue
impl PartialEq for BaselineShiftStyleValue
Source§impl PartialOrd for BaselineShiftStyleValue
impl PartialOrd for BaselineShiftStyleValue
Source§impl<'a> Peek<'a> for BaselineShiftStyleValue
impl<'a> Peek<'a> for BaselineShiftStyleValue
Source§impl ToCursors for BaselineShiftStyleValue
impl ToCursors for BaselineShiftStyleValue
fn to_cursors(&self, s: &mut impl CursorSink)
impl Eq for BaselineShiftStyleValue
impl StructuralPartialEq for BaselineShiftStyleValue
Auto Trait Implementations§
impl Freeze for BaselineShiftStyleValue
impl RefUnwindSafe for BaselineShiftStyleValue
impl Send for BaselineShiftStyleValue
impl Sync for BaselineShiftStyleValue
impl Unpin for BaselineShiftStyleValue
impl UnwindSafe for BaselineShiftStyleValue
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