pub enum WrapMode {
Auto,
None,
Preserve,
}Expand description
How a text writer lays out the lines of a paragraph.
Variants§
Auto
Reflow inline content, breaking lines to keep them within the fill column. A soft line break in the source is just inter-word space and is re-flowed like any other.
None
Never break a paragraph: each one is a single line, with soft breaks rendered as spaces. Lines run as long as their content (only an explicit hard break starts a new line).
Preserve
Keep the source’s own line breaks: a soft break stays a line break and content is not reflowed, but lines are not wrapped to a column either.
Trait Implementations§
impl Copy for WrapMode
impl Eq for WrapMode
impl StructuralPartialEq for WrapMode
Auto Trait Implementations§
impl Freeze for WrapMode
impl RefUnwindSafe for WrapMode
impl Send for WrapMode
impl Sync for WrapMode
impl Unpin for WrapMode
impl UnsafeUnpin for WrapMode
impl UnwindSafe for WrapMode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more