pub enum OverflowMethod {
Fold,
Crop,
Ellipsis,
Ignore,
}Expand description
How to handle text that overflows the available width.
Variants§
Fold
Wrap text onto the next line.
Crop
Crop text at the boundary.
Ellipsis
Crop and append “…”.
Ignore
Let text overflow (don’t clip).
Trait Implementations§
Source§impl Clone for OverflowMethod
impl Clone for OverflowMethod
Source§fn clone(&self) -> OverflowMethod
fn clone(&self) -> OverflowMethod
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 moreSource§impl Debug for OverflowMethod
impl Debug for OverflowMethod
Source§impl Hash for OverflowMethod
impl Hash for OverflowMethod
Source§impl PartialEq for OverflowMethod
impl PartialEq for OverflowMethod
Source§fn eq(&self, other: &OverflowMethod) -> bool
fn eq(&self, other: &OverflowMethod) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for OverflowMethod
impl Eq for OverflowMethod
impl StructuralPartialEq for OverflowMethod
Auto Trait Implementations§
impl Freeze for OverflowMethod
impl RefUnwindSafe for OverflowMethod
impl Send for OverflowMethod
impl Sync for OverflowMethod
impl Unpin for OverflowMethod
impl UnsafeUnpin for OverflowMethod
impl UnwindSafe for OverflowMethod
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.