pub enum TextWrap {
Normal,
BreakWord,
Anywhere,
}Expand description
How a line may break when a word is wider than its box (overflow-wrap /
word-break). CSS’s default lets a long word overflow rather than break.
Variants§
Normal
BreakWord
overflow-wrap: break-word: break inside a word rather than overflow.
Anywhere
word-break: break-all: break anywhere.
Trait Implementations§
impl Copy for TextWrap
impl StructuralPartialEq for TextWrap
Auto Trait Implementations§
impl Freeze for TextWrap
impl RefUnwindSafe for TextWrap
impl Send for TextWrap
impl Sync for TextWrap
impl Unpin for TextWrap
impl UnsafeUnpin for TextWrap
impl UnwindSafe for TextWrap
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