pub enum Overflow {
Clip,
TruncateHead,
TruncateMiddle,
TruncateTail,
}Expand description
Controls the text overflow behavior of a label when the text doesn’t fit the container.
Variants§
Clip
Text is simply cut off when it doesn’t fit.
TruncateHead
An ellipsis is shown at the end of the text.
TruncateMiddle
An ellipsis is shown in the middle of the text.
TruncateTail
An ellipsis is shown at the beginning of the text.
Trait Implementations§
impl Copy for Overflow
impl Eq for Overflow
impl StructuralPartialEq for Overflow
Auto Trait Implementations§
impl Freeze for Overflow
impl RefUnwindSafe for Overflow
impl Send for Overflow
impl Sync for Overflow
impl Unpin for Overflow
impl UnwindSafe for Overflow
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