#[non_exhaustive]pub struct LineClamp {
pub count: u32,
pub ellipsis: Option<String>,
}Expand description
Represents a line clamp value.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.count: u32The number of lines to clamp.
ellipsis: Option<String>The ellipsis character to use when the text is clamped.
Trait Implementations§
Source§impl<'i> FromCss<'i> for LineClamp
impl<'i> FromCss<'i> for LineClamp
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.
impl StructuralPartialEq for LineClamp
Source§impl TailwindPropertyParser for LineClamp
impl TailwindPropertyParser for LineClamp
Auto Trait Implementations§
impl Freeze for LineClamp
impl RefUnwindSafe for LineClamp
impl Send for LineClamp
impl Sync for LineClamp
impl Unpin for LineClamp
impl UnsafeUnpin for LineClamp
impl UnwindSafe for LineClamp
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