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 · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more