pub struct TextWrapStyleValue {
pub text_wrap_mode: Option<TextWrapModeStyleValue>,
pub text_wrap_style: Option<TextWrapStyleStyleValue>,
}Expand description
Represents the style value for text-wrap as defined in css-text-4.
The text-wrap CSS property sets how lines break in text that overflows the container. It is a shorthand for text-wrap-style and text-wrap-mode.
The grammar is defined as:
<'text-wrap-mode'> || <'text-wrap-style'>Fields§
§text_wrap_mode: Option<TextWrapModeStyleValue>§text_wrap_style: Option<TextWrapStyleStyleValue>Trait Implementations§
Source§impl Clone for TextWrapStyleValue
impl Clone for TextWrapStyleValue
Source§fn clone(&self) -> TextWrapStyleValue
fn clone(&self) -> TextWrapStyleValue
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 TextWrapStyleValue
impl Debug for TextWrapStyleValue
Source§impl Hash for TextWrapStyleValue
impl Hash for TextWrapStyleValue
Source§impl Ord for TextWrapStyleValue
impl Ord for TextWrapStyleValue
Source§fn cmp(&self, other: &TextWrapStyleValue) -> Ordering
fn cmp(&self, other: &TextWrapStyleValue) -> 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 TextWrapStyleValue
impl<'a> Parse<'a> for TextWrapStyleValue
Source§impl PartialEq for TextWrapStyleValue
impl PartialEq for TextWrapStyleValue
Source§impl PartialOrd for TextWrapStyleValue
impl PartialOrd for TextWrapStyleValue
Source§impl<'a> Peek<'a> for TextWrapStyleValue
impl<'a> Peek<'a> for TextWrapStyleValue
Source§impl ToCursors for TextWrapStyleValue
impl ToCursors for TextWrapStyleValue
fn to_cursors(&self, s: &mut impl CursorSink)
impl Eq for TextWrapStyleValue
impl StructuralPartialEq for TextWrapStyleValue
Auto Trait Implementations§
impl Freeze for TextWrapStyleValue
impl RefUnwindSafe for TextWrapStyleValue
impl Send for TextWrapStyleValue
impl Sync for TextWrapStyleValue
impl Unpin for TextWrapStyleValue
impl UnwindSafe for TextWrapStyleValue
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