pub enum LineLimit {
Unlimited,
Clip(usize),
Ellipsis(usize),
}Expand description
An explicit count of retained lines, independent of rectangle/scissor clipping. Zero retains no lines. Neither policy changes font size or line breaking.
Variants§
Unlimited
Retain every wrapped line (the existing UI behavior).
Clip(usize)
Keep at most this many lines, without a suffix.
Ellipsis(usize)
Keep at most this many lines; if more exist, replace the final line’s
tail with .... A width fitting only one/two cells uses ./..;
a width below one cell has no marker. An exact fit gets no marker.
Trait Implementations§
impl Copy for LineLimit
impl Eq for LineLimit
impl StructuralPartialEq for LineLimit
Auto Trait Implementations§
impl Freeze for LineLimit
impl RefUnwindSafe for LineLimit
impl Send for LineLimit
impl Sync for LineLimit
impl Unpin for LineLimit
impl UnwindSafe for LineLimit
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