pub struct TextDecorationTrimStyleValue(pub AutoOr<(Length, Option<Length>)>);Expand description
Represents the style value for text-decoration-trim as defined in css-text-decor-4.
The grammar is defined as:
<length>{1,2} | autoTuple Fields§
§0: AutoOr<(Length, Option<Length>)>Trait Implementations§
Source§impl Clone for TextDecorationTrimStyleValue
impl Clone for TextDecorationTrimStyleValue
Source§fn clone(&self) -> TextDecorationTrimStyleValue
fn clone(&self) -> TextDecorationTrimStyleValue
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 TextDecorationTrimStyleValue
impl Debug for TextDecorationTrimStyleValue
Source§impl Hash for TextDecorationTrimStyleValue
impl Hash for TextDecorationTrimStyleValue
Source§impl Ord for TextDecorationTrimStyleValue
impl Ord for TextDecorationTrimStyleValue
Source§fn cmp(&self, other: &TextDecorationTrimStyleValue) -> Ordering
fn cmp(&self, other: &TextDecorationTrimStyleValue) -> 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 TextDecorationTrimStyleValue
impl<'a> Parse<'a> for TextDecorationTrimStyleValue
Source§impl PartialEq for TextDecorationTrimStyleValue
impl PartialEq for TextDecorationTrimStyleValue
Source§fn eq(&self, other: &TextDecorationTrimStyleValue) -> bool
fn eq(&self, other: &TextDecorationTrimStyleValue) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for TextDecorationTrimStyleValue
impl PartialOrd for TextDecorationTrimStyleValue
Source§impl<'a> Peek<'a> for TextDecorationTrimStyleValue
impl<'a> Peek<'a> for TextDecorationTrimStyleValue
Source§impl ToCursors for TextDecorationTrimStyleValue
impl ToCursors for TextDecorationTrimStyleValue
fn to_cursors(&self, s: &mut impl CursorSink)
impl Eq for TextDecorationTrimStyleValue
impl StructuralPartialEq for TextDecorationTrimStyleValue
Auto Trait Implementations§
impl Freeze for TextDecorationTrimStyleValue
impl RefUnwindSafe for TextDecorationTrimStyleValue
impl Send for TextDecorationTrimStyleValue
impl Sync for TextDecorationTrimStyleValue
impl Unpin for TextDecorationTrimStyleValue
impl UnwindSafe for TextDecorationTrimStyleValue
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