pub enum TextBoxTrimStyleValue {
None(Ident),
TrimStart(Ident),
TrimEnd(Ident),
TrimBoth(Ident),
}Expand description
Represents the style value for text-box-trim as defined in css-inline-3.
The text-box CSS property sets the spacing above and below text based on a font’s typographic features. For example, text-box: trim-both ex alphabetic trims the top to the top of the letter x and the bottom to the bottom of most letters, without descenders.
The grammar is defined as:
none | trim-start | trim-end | trim-bothVariants§
Trait Implementations§
Source§impl Clone for TextBoxTrimStyleValue
impl Clone for TextBoxTrimStyleValue
Source§fn clone(&self) -> TextBoxTrimStyleValue
fn clone(&self) -> TextBoxTrimStyleValue
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 TextBoxTrimStyleValue
impl Debug for TextBoxTrimStyleValue
Source§impl Hash for TextBoxTrimStyleValue
impl Hash for TextBoxTrimStyleValue
Source§impl Ord for TextBoxTrimStyleValue
impl Ord for TextBoxTrimStyleValue
Source§fn cmp(&self, other: &TextBoxTrimStyleValue) -> Ordering
fn cmp(&self, other: &TextBoxTrimStyleValue) -> 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 TextBoxTrimStyleValue
impl<'a> Parse<'a> for TextBoxTrimStyleValue
Source§impl PartialEq for TextBoxTrimStyleValue
impl PartialEq for TextBoxTrimStyleValue
Source§impl PartialOrd for TextBoxTrimStyleValue
impl PartialOrd for TextBoxTrimStyleValue
Source§impl<'a> Peek<'a> for TextBoxTrimStyleValue
impl<'a> Peek<'a> for TextBoxTrimStyleValue
Source§impl ToCursors for TextBoxTrimStyleValue
impl ToCursors for TextBoxTrimStyleValue
fn to_cursors(&self, s: &mut impl CursorSink)
impl Eq for TextBoxTrimStyleValue
impl StructuralPartialEq for TextBoxTrimStyleValue
Auto Trait Implementations§
impl Freeze for TextBoxTrimStyleValue
impl RefUnwindSafe for TextBoxTrimStyleValue
impl Send for TextBoxTrimStyleValue
impl Sync for TextBoxTrimStyleValue
impl Unpin for TextBoxTrimStyleValue
impl UnwindSafe for TextBoxTrimStyleValue
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