#[non_exhaustive]pub enum Overflow {
KeepWords,
Fold,
Ellipsis,
}Expand description
What happens to a line wider than the width it is given.
Each variant is a policy a layout offers a column or a paragraph. No policy splits a grapheme cluster.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
KeepWords
Break lines at spaces only. A word wider than the width keeps a line of its own and runs past the width.
Fold
Break lines at spaces, and break a word wider than the width between clusters. A cluster wider than the width keeps a line of its own.
Ellipsis
Keep one line and cut it with an ELLIPSIS when it is too wide.
Trait Implementations§
impl Copy for Overflow
impl Eq for Overflow
impl StructuralPartialEq for Overflow
Auto Trait Implementations§
impl Forget for Overflow
impl Freeze for Overflow
impl Move for Overflow
impl RefUnwindSafe for Overflow
impl Send for Overflow
impl Sync for Overflow
impl Unpin for Overflow
impl UnsafeUnpin 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