pub struct LineClamp {
pub max_lines: u16,
}Expand description
Line clamp configuration.
Limits the number of visible lines, truncating with an ellipsis on the last visible line when content exceeds the limit.
Fields§
§max_lines: u16Maximum number of visible lines. 0 means unlimited.
Implementations§
Trait Implementations§
impl Copy for LineClamp
impl Eq for LineClamp
impl StructuralPartialEq 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