pub enum WrappingStrategy {
None,
AtCol(usize),
SpaceBeforeCol(usize),
AtColWithHypen(usize),
Cutoff(usize),
Ellipsis(usize),
}
Variants§
None
Don’t wrap, will draw off screen
AtCol(usize)
Splits string at column
SpaceBeforeCol(usize)
Wraps at the first space before column (acts like AtCol if no space is on that line)
AtColWithHypen(usize)
Same as AtCol but adds a hypen if it’s splitting a word
Cutoff(usize)
Chops off the end of string it’s over specific length
Ellipsis(usize)
Same as Cutoff but adds an ellipsis
Implementations§
Trait Implementations§
source§impl Clone for WrappingStrategy
impl Clone for WrappingStrategy
source§fn clone(&self) -> WrappingStrategy
fn clone(&self) -> WrappingStrategy
Returns a copy of the value. Read more
1.0.0 · 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 WrappingStrategy
impl Debug for WrappingStrategy
source§impl Default for WrappingStrategy
impl Default for WrappingStrategy
source§impl PartialEq<WrappingStrategy> for WrappingStrategy
impl PartialEq<WrappingStrategy> for WrappingStrategy
source§fn eq(&self, other: &WrappingStrategy) -> bool
fn eq(&self, other: &WrappingStrategy) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.