pub struct TextUnderlineOffsetStyleValue(pub AutoOr<LengthPercentage>);Expand description
Represents the style value for text-underline-offset as defined in css-text-decor-4.
The text-underline-offset CSS property shifts underlines on text from the initial position by a given distance. The initial position is affected by the text-underline-position property.
The grammar is defined as:
auto | <length-percentage>Tuple Fields§
§0: AutoOr<LengthPercentage>Trait Implementations§
Source§impl Clone for TextUnderlineOffsetStyleValue
impl Clone for TextUnderlineOffsetStyleValue
Source§fn clone(&self) -> TextUnderlineOffsetStyleValue
fn clone(&self) -> TextUnderlineOffsetStyleValue
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 Hash for TextUnderlineOffsetStyleValue
impl Hash for TextUnderlineOffsetStyleValue
Source§impl Ord for TextUnderlineOffsetStyleValue
impl Ord for TextUnderlineOffsetStyleValue
Source§fn cmp(&self, other: &TextUnderlineOffsetStyleValue) -> Ordering
fn cmp(&self, other: &TextUnderlineOffsetStyleValue) -> 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 TextUnderlineOffsetStyleValue
impl<'a> Parse<'a> for TextUnderlineOffsetStyleValue
Source§impl PartialEq for TextUnderlineOffsetStyleValue
impl PartialEq for TextUnderlineOffsetStyleValue
Source§fn eq(&self, other: &TextUnderlineOffsetStyleValue) -> bool
fn eq(&self, other: &TextUnderlineOffsetStyleValue) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for TextUnderlineOffsetStyleValue
impl PartialOrd for TextUnderlineOffsetStyleValue
Source§impl<'a> Peek<'a> for TextUnderlineOffsetStyleValue
impl<'a> Peek<'a> for TextUnderlineOffsetStyleValue
Source§impl ToCursors for TextUnderlineOffsetStyleValue
impl ToCursors for TextUnderlineOffsetStyleValue
fn to_cursors(&self, s: &mut impl CursorSink)
impl Eq for TextUnderlineOffsetStyleValue
impl StructuralPartialEq for TextUnderlineOffsetStyleValue
Auto Trait Implementations§
impl Freeze for TextUnderlineOffsetStyleValue
impl RefUnwindSafe for TextUnderlineOffsetStyleValue
impl Send for TextUnderlineOffsetStyleValue
impl Sync for TextUnderlineOffsetStyleValue
impl Unpin for TextUnderlineOffsetStyleValue
impl UnwindSafe for TextUnderlineOffsetStyleValue
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