pub enum TruncateStrategy {
End,
Start,
Middle,
Path,
}Expand description
Truncation strategy for text that exceeds column width.
Variants§
End
Truncate from the end with ellipsis: “very long te…”
Start
Truncate from the start with ellipsis: “…ong text here”
Middle
Truncate in the middle: “hel…orld”
Path
Smart path truncation: keeps filename, truncates directories
Trait Implementations§
Source§impl Clone for TruncateStrategy
impl Clone for TruncateStrategy
Source§fn clone(&self) -> TruncateStrategy
fn clone(&self) -> TruncateStrategy
Returns a duplicate 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 TruncateStrategy
impl Debug for TruncateStrategy
Source§impl Default for TruncateStrategy
impl Default for TruncateStrategy
Source§fn default() -> TruncateStrategy
fn default() -> TruncateStrategy
Returns the “default value” for a type. Read more
Source§impl PartialEq for TruncateStrategy
impl PartialEq for TruncateStrategy
impl Copy for TruncateStrategy
impl Eq for TruncateStrategy
impl StructuralPartialEq for TruncateStrategy
Auto Trait Implementations§
impl Freeze for TruncateStrategy
impl RefUnwindSafe for TruncateStrategy
impl Send for TruncateStrategy
impl Sync for TruncateStrategy
impl Unpin for TruncateStrategy
impl UnsafeUnpin for TruncateStrategy
impl UnwindSafe for TruncateStrategy
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