pub enum TextWrapMode {
None,
Wrap,
WrapWords,
}Expand description
Where to break text that exceeds the available terminal cells.
Variants§
None
Preserve source lines without adding breaks.
Wrap
Break at any complete grapheme cluster, preserving whitespace.
WrapWords
Prefer whitespace-separated words, breaking long words at grapheme boundaries. Leading and trailing whitespace is omitted from each resulting line.
Trait Implementations§
Source§impl Clone for TextWrapMode
impl Clone for TextWrapMode
Source§fn clone(&self) -> TextWrapMode
fn clone(&self) -> TextWrapMode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TextWrapMode
Source§impl Debug for TextWrapMode
impl Debug for TextWrapMode
impl Eq for TextWrapMode
Source§impl PartialEq for TextWrapMode
impl PartialEq for TextWrapMode
impl StructuralPartialEq for TextWrapMode
Auto Trait Implementations§
impl Freeze for TextWrapMode
impl RefUnwindSafe for TextWrapMode
impl Send for TextWrapMode
impl Sync for TextWrapMode
impl Unpin for TextWrapMode
impl UnsafeUnpin for TextWrapMode
impl UnwindSafe for TextWrapMode
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