pub enum TruncatePosition {
Start,
Middle,
End,
}Expand description
Where to remove characters when truncating.
Variants§
Start
Truncate at the start: "…ld".
Middle
Truncate in the middle: "he…ld".
End
Truncate at the end (default): "he…".
Trait Implementations§
Source§impl Clone for TruncatePosition
impl Clone for TruncatePosition
Source§fn clone(&self) -> TruncatePosition
fn clone(&self) -> TruncatePosition
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 moreimpl Copy for TruncatePosition
Source§impl Debug for TruncatePosition
impl Debug for TruncatePosition
impl Eq for TruncatePosition
Source§impl PartialEq for TruncatePosition
impl PartialEq for TruncatePosition
Source§fn eq(&self, other: &TruncatePosition) -> bool
fn eq(&self, other: &TruncatePosition) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TruncatePosition
Auto Trait Implementations§
impl Freeze for TruncatePosition
impl RefUnwindSafe for TruncatePosition
impl Send for TruncatePosition
impl Sync for TruncatePosition
impl Unpin for TruncatePosition
impl UnsafeUnpin for TruncatePosition
impl UnwindSafe for TruncatePosition
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