pub enum WrapStyle {
Word,
Letter,
}
Expand description
Wrap style is a hint for how strings of text should be wrapped to the next line. Line wrapping can happen when the max width/height is reached.
Variants
Word
Word will break lines by the Unicode line breaking algorithm (Standard Annex #14) This will generally break lines where you expect them to be broken at and will preserve words.
Letter
Letter will not preserve words, breaking into a new line after the nearest letter.
Trait Implementations
impl Copy 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