pub enum Wrap {
Keep,
No,
At(u32),
}Expand description
Prose-wrap mode.
Keep (default) and No both leave existing breaks alone; the
distinction is whether the formatter is allowed to introduce new
breaks later (Keep means “do nothing if already within budget”,
No means “never break”). At(n) wraps at column n.
Variants§
Implementations§
Trait Implementations§
impl Copy for Wrap
impl Eq for Wrap
impl StructuralPartialEq for Wrap
Auto Trait Implementations§
impl Freeze for Wrap
impl RefUnwindSafe for Wrap
impl Send for Wrap
impl Sync for Wrap
impl Unpin for Wrap
impl UnsafeUnpin for Wrap
impl UnwindSafe for Wrap
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