pub enum TextWrapModeStyleValue {
Wrap(Ident),
Nowrap(Ident),
}Expand description
Represents the style value for text-wrap-mode as defined in css-text-4.
The text-wrap-mode CSS property sets whether lines may wrap with the values wrap and nowrap. It is a longhand property for both white-space and text-wrap.
The grammar is defined as:
wrap | nowrapVariants§
Trait Implementations§
Source§impl Clone for TextWrapModeStyleValue
impl Clone for TextWrapModeStyleValue
Source§fn clone(&self) -> TextWrapModeStyleValue
fn clone(&self) -> TextWrapModeStyleValue
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 TextWrapModeStyleValue
impl Debug for TextWrapModeStyleValue
Source§impl Hash for TextWrapModeStyleValue
impl Hash for TextWrapModeStyleValue
Source§impl Ord for TextWrapModeStyleValue
impl Ord for TextWrapModeStyleValue
Source§fn cmp(&self, other: &TextWrapModeStyleValue) -> Ordering
fn cmp(&self, other: &TextWrapModeStyleValue) -> 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 TextWrapModeStyleValue
impl<'a> Parse<'a> for TextWrapModeStyleValue
Source§impl PartialEq for TextWrapModeStyleValue
impl PartialEq for TextWrapModeStyleValue
Source§impl PartialOrd for TextWrapModeStyleValue
impl PartialOrd for TextWrapModeStyleValue
Source§impl<'a> Peek<'a> for TextWrapModeStyleValue
impl<'a> Peek<'a> for TextWrapModeStyleValue
Source§impl ToCursors for TextWrapModeStyleValue
impl ToCursors for TextWrapModeStyleValue
fn to_cursors(&self, s: &mut impl CursorSink)
impl Eq for TextWrapModeStyleValue
impl StructuralPartialEq for TextWrapModeStyleValue
Auto Trait Implementations§
impl Freeze for TextWrapModeStyleValue
impl RefUnwindSafe for TextWrapModeStyleValue
impl Send for TextWrapModeStyleValue
impl Sync for TextWrapModeStyleValue
impl Unpin for TextWrapModeStyleValue
impl UnwindSafe for TextWrapModeStyleValue
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