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§fn default() -> WrappingStrategy
fn default() -> WrappingStrategy
Returns the “default value” for a type. Read more
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 ==
.impl Copy for WrappingStrategy
impl Eq for WrappingStrategy
impl StructuralEq for WrappingStrategy
impl StructuralPartialEq for WrappingStrategy
Auto Trait Implementations§
impl RefUnwindSafe for WrappingStrategy
impl Send for WrappingStrategy
impl Sync for WrappingStrategy
impl Unpin for WrappingStrategy
impl UnwindSafe for WrappingStrategy
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