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
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 will not preserve words, breaking into a new line after the nearest letter.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for WrapStyle
impl UnwindSafe for WrapStyle
Blanket Implementations
Mutably borrows from an owned value. Read more