pub enum Truncation {
None,
Start,
End,
Middle,
}Expand description
Variants§
None
No truncation. Text may overflow the layer bounds.
Start
Truncate at the start of the text (e.g., “…long text”).
End
Truncate at the end of the text (e.g., “Long text…”).
Middle
Truncate in the middle of the text (e.g., “Long…text”).
Trait Implementations§
Source§impl Clone for Truncation
impl Clone for Truncation
Source§fn clone(&self) -> Truncation
fn clone(&self) -> Truncation
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 Truncation
impl Debug for Truncation
Source§impl Default for Truncation
impl Default for Truncation
Source§fn default() -> Truncation
fn default() -> Truncation
Returns the “default value” for a type. Read more
Source§impl Hash for Truncation
impl Hash for Truncation
Source§impl PartialEq for Truncation
impl PartialEq for Truncation
impl Copy for Truncation
impl Eq for Truncation
impl StructuralPartialEq for Truncation
Auto Trait Implementations§
impl Freeze for Truncation
impl RefUnwindSafe for Truncation
impl Send for Truncation
impl Sync for Truncation
impl Unpin for Truncation
impl UnwindSafe for Truncation
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