Struct textwrap::wrap_algorithms::OptimalFit [−][src]
pub struct OptimalFit;
Expand description
Wrap words using an advanced algorithm with look-ahead.
This wrapping algorithm considers the entire paragraph to find
optimal line breaks. Implemented by wrap_optimal_fit
, please
see that function for details and examples.
Note: Only available when the smawk
Cargo feature is
enabled.
Trait Implementations
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for OptimalFit
impl Send for OptimalFit
impl Sync for OptimalFit
impl Unpin for OptimalFit
impl UnwindSafe for OptimalFit
Blanket Implementations
Mutably borrows from an owned value. Read more