pub enum WordBreak {
BreakAll,
Hyphenate,
Normal,
}Expand description
Controls how words wider than the available box width are handled.
Variants§
BreakAll
Break wide words at a character boundary. (Default)
Hyphenate
Break wide words at a character boundary and insert a hyphen.
Normal
Do not break words. Wide words overflow the box.
Trait Implementations§
impl Copy for WordBreak
impl Eq for WordBreak
impl StructuralPartialEq for WordBreak
Auto Trait Implementations§
impl Freeze for WordBreak
impl RefUnwindSafe for WordBreak
impl Send for WordBreak
impl Sync for WordBreak
impl Unpin for WordBreak
impl UnsafeUnpin for WordBreak
impl UnwindSafe for WordBreak
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