pub enum TextDecorationThicknessStyleValue {
Auto(Ident),
FromFont(Ident),
LengthPercentage(LengthPercentage),
}Expand description
Represents the style value for text-decoration-thickness as defined in css-text-decor-4.
The text-decoration CSS property sets the style and color of decorative lines including underline, overline, line-through, or a combination of lines.
The grammar is defined as:
auto | from-font | <length-percentage>Variants§
Trait Implementations§
Source§impl Clone for TextDecorationThicknessStyleValue
impl Clone for TextDecorationThicknessStyleValue
Source§fn clone(&self) -> TextDecorationThicknessStyleValue
fn clone(&self) -> TextDecorationThicknessStyleValue
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 Ord for TextDecorationThicknessStyleValue
impl Ord for TextDecorationThicknessStyleValue
Source§fn cmp(&self, other: &TextDecorationThicknessStyleValue) -> Ordering
fn cmp(&self, other: &TextDecorationThicknessStyleValue) -> 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 TextDecorationThicknessStyleValue
impl<'a> Parse<'a> for TextDecorationThicknessStyleValue
Source§impl PartialEq for TextDecorationThicknessStyleValue
impl PartialEq for TextDecorationThicknessStyleValue
Source§fn eq(&self, other: &TextDecorationThicknessStyleValue) -> bool
fn eq(&self, other: &TextDecorationThicknessStyleValue) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for TextDecorationThicknessStyleValue
impl PartialOrd for TextDecorationThicknessStyleValue
Source§impl<'a> Peek<'a> for TextDecorationThicknessStyleValue
impl<'a> Peek<'a> for TextDecorationThicknessStyleValue
Source§impl ToCursors for TextDecorationThicknessStyleValue
impl ToCursors for TextDecorationThicknessStyleValue
fn to_cursors(&self, s: &mut impl CursorSink)
impl Eq for TextDecorationThicknessStyleValue
impl StructuralPartialEq for TextDecorationThicknessStyleValue
Auto Trait Implementations§
impl Freeze for TextDecorationThicknessStyleValue
impl RefUnwindSafe for TextDecorationThicknessStyleValue
impl Send for TextDecorationThicknessStyleValue
impl Sync for TextDecorationThicknessStyleValue
impl Unpin for TextDecorationThicknessStyleValue
impl UnwindSafe for TextDecorationThicknessStyleValue
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