pub enum EllipsizeHeightLimit {
Lines(usize),
Height(f32),
}Variants§
Lines(usize)
Number of lines to show before ellipsizing the rest. Only works if Wrap is NOT set to
Wrap::None. Otherwise, it will be ignored and the behavior will be the same as Lines(1)
Height(f32)
Ellipsizes the last line that fits within the given height limit. If Wrap is set to
Wrap::None, the behavior will be the same as Lines(1)
Trait Implementations§
Source§impl Clone for EllipsizeHeightLimit
impl Clone for EllipsizeHeightLimit
Source§fn clone(&self) -> EllipsizeHeightLimit
fn clone(&self) -> EllipsizeHeightLimit
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 EllipsizeHeightLimit
impl Debug for EllipsizeHeightLimit
Source§impl PartialEq for EllipsizeHeightLimit
impl PartialEq for EllipsizeHeightLimit
impl Copy for EllipsizeHeightLimit
impl StructuralPartialEq for EllipsizeHeightLimit
Auto Trait Implementations§
impl Freeze for EllipsizeHeightLimit
impl RefUnwindSafe for EllipsizeHeightLimit
impl Send for EllipsizeHeightLimit
impl Sync for EllipsizeHeightLimit
impl Unpin for EllipsizeHeightLimit
impl UnsafeUnpin for EllipsizeHeightLimit
impl UnwindSafe for EllipsizeHeightLimit
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