pub enum WrapStrategy {
Stable,
Balanced,
}Expand description
Paragraph-wrap planner.
Variants§
Stable
Reflow each hard-break-bounded run with mdformat-compatible soft breaks.
Balanced
Rebalance the whole paragraph with a squared-slack planner.
Implementations§
Trait Implementations§
Source§impl Clone for WrapStrategy
impl Clone for WrapStrategy
Source§fn clone(&self) -> WrapStrategy
fn clone(&self) -> WrapStrategy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WrapStrategy
impl Debug for WrapStrategy
Source§impl PartialEq for WrapStrategy
impl PartialEq for WrapStrategy
Source§fn eq(&self, other: &WrapStrategy) -> bool
fn eq(&self, other: &WrapStrategy) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for WrapStrategy
impl Eq for WrapStrategy
impl StructuralPartialEq for WrapStrategy
Auto Trait Implementations§
impl Freeze for WrapStrategy
impl RefUnwindSafe for WrapStrategy
impl Send for WrapStrategy
impl Sync for WrapStrategy
impl Unpin for WrapStrategy
impl UnsafeUnpin for WrapStrategy
impl UnwindSafe for WrapStrategy
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