Enum fontdue::layout::WrapStyle [−][src]
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
Expand description
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.
Expand description
Letter will not preserve words, breaking into a new line after the nearest letter.
Trait Implementations
impl Copy for WrapStyle
[src]
impl StructuralPartialEq for WrapStyle
[src]
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
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more