pub enum WrapMode {
None,
Word,
Char,
WordChar,
Optimal,
}Expand description
Text wrapping mode.
Variants§
None
No wrapping - lines may exceed width.
Word
Wrap at word boundaries when possible.
Char
Wrap at character (grapheme) boundaries.
WordChar
Word wrap with character fallback for long words.
Optimal
Knuth-Plass optimal line breaking (minimizes total badness).
Produces globally optimal break points at the cost of examining
the full paragraph. Falls back to word-wrap for single-word lines.
See wrap_optimal for the underlying algorithm.
Trait Implementations§
impl Copy for WrapMode
impl Eq for WrapMode
impl StructuralPartialEq for WrapMode
Auto Trait Implementations§
impl Freeze for WrapMode
impl RefUnwindSafe for WrapMode
impl Send for WrapMode
impl Sync for WrapMode
impl Unpin for WrapMode
impl UnsafeUnpin for WrapMode
impl UnwindSafe for WrapMode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.