#[non_exhaustive]pub enum TextWrapMode {
Wrap,
NoWrap,
}Expand description
Controls whether text should be wrapped.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Wrap
Text is wrapped across lines at appropriate characters to minimize overflow.
NoWrap
Text does not wrap across lines. It will overflow its containing element rather than breaking onto a new line.
Trait Implementations§
Source§impl Clone for TextWrapMode
impl Clone for TextWrapMode
Source§fn clone(&self) -> TextWrapMode
fn clone(&self) -> TextWrapMode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TextWrapMode
Source§impl Debug for TextWrapMode
impl Debug for TextWrapMode
Source§impl Default for TextWrapMode
impl Default for TextWrapMode
Source§fn default() -> TextWrapMode
fn default() -> TextWrapMode
Returns the “default value” for a type. Read more
Source§impl From<TextWrapMode> for TextWrapMode
impl From<TextWrapMode> for TextWrapMode
Source§fn from(value: TextWrapMode) -> Self
fn from(value: TextWrapMode) -> Self
Converts to this type from the input type.
Source§impl<'i> FromCss<'i> for TextWrapMode
impl<'i> FromCss<'i> for TextWrapMode
Source§const VALID_TOKENS: &'static [CssToken]
const VALID_TOKENS: &'static [CssToken]
Returns the list of valid CSS tokens for this type.
Source§fn from_css(input: &mut Parser<'i, '_>) -> ParseResult<'i, Self>
fn from_css(input: &mut Parser<'i, '_>) -> ParseResult<'i, Self>
Parses the type from a
Parser instance.Source§fn from_str(source: &'i str) -> ParseResult<'i, Self>where
Self: Sized,
fn from_str(source: &'i str) -> ParseResult<'i, Self>where
Self: Sized,
Helper function to parse the type from a string.
Source§const EXPECT_MESSAGE: CssExpectedMessage = CssExpectedMessage::OneValue
const EXPECT_MESSAGE: CssExpectedMessage = CssExpectedMessage::OneValue
Message template used when building parse errors for this type.
Source§impl PartialEq for TextWrapMode
impl PartialEq for TextWrapMode
Source§fn eq(&self, other: &TextWrapMode) -> bool
fn eq(&self, other: &TextWrapMode) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TextWrapMode
Auto Trait Implementations§
impl Freeze for TextWrapMode
impl RefUnwindSafe for TextWrapMode
impl Send for TextWrapMode
impl Sync for TextWrapMode
impl Unpin for TextWrapMode
impl UnsafeUnpin for TextWrapMode
impl UnwindSafe for TextWrapMode
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