pub enum TextOverflow {
Wrap,
Clip,
Ellipsis,
}Expand description
Text overflow handling when a line exceeds available width.
Variants§
Wrap
Wrap text across multiple lines.
Clip
Clip overflowing glyphs cleanly.
Ellipsis
Truncate single line with trailing ellipsis.
Trait Implementations§
Source§impl Clone for TextOverflow
impl Clone for TextOverflow
impl Copy for TextOverflow
Source§impl Debug for TextOverflow
impl Debug for TextOverflow
Source§impl Default for TextOverflow
impl Default for TextOverflow
impl Eq for TextOverflow
Source§impl Hash for TextOverflow
impl Hash for TextOverflow
Source§impl Ord for TextOverflow
impl Ord for TextOverflow
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for TextOverflow
impl PartialEq for TextOverflow
Source§impl PartialOrd for TextOverflow
impl PartialOrd for TextOverflow
impl StructuralPartialEq for TextOverflow
Auto Trait Implementations§
impl Forget for TextOverflow
impl Freeze for TextOverflow
impl Move for TextOverflow
impl RefUnwindSafe for TextOverflow
impl Send for TextOverflow
impl Sync for TextOverflow
impl Unpin for TextOverflow
impl UnsafeUnpin for TextOverflow
impl UnwindSafe for TextOverflow
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