pub enum WrapStyle {
None,
Word,
Character,
}Expand description
Determines how text should be wrapped.
Variants
None
Do not wrap the text.
Word
Keep words together and do not break in the middle of words. This is usually what is desired. Breaks to a newline at the nearest word boundary.
This is the default behavior.
Character
Keep as many characters per line as possible, and allow breaks in the middle of words. Breaks to a newline at the nearest character.
Trait Implementations
impl Copy for WrapStyle
impl Eq for WrapStyle
impl StructuralEq for WrapStyle
impl StructuralPartialEq for WrapStyle
Auto Trait Implementations
impl RefUnwindSafe for WrapStyle
impl Send for WrapStyle
impl Sync for WrapStyle
impl Unpin for WrapStyle
impl UnwindSafe for WrapStyle
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more