pub enum DescriptionNameWidth {
Never,
Fixed(usize),
Auto,
}Expand description
DescriptionNameWidth enum defines how the width of item names is determined.
This enum is used when displaying item descriptions (DescriptionShowMode::CurrentOnly, and DescriptionShowMode::All).
Variants§
Never
no width adjustment is made.
Fixed(usize)
fixed width adjustment is applied.
Auto
auto width adjustment based on the maximum name length.
Trait Implementations§
Source§impl Clone for DescriptionNameWidth
impl Clone for DescriptionNameWidth
Source§fn clone(&self) -> DescriptionNameWidth
fn clone(&self) -> DescriptionNameWidth
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 moreAuto Trait Implementations§
impl Freeze for DescriptionNameWidth
impl RefUnwindSafe for DescriptionNameWidth
impl Send for DescriptionNameWidth
impl Sync for DescriptionNameWidth
impl Unpin for DescriptionNameWidth
impl UnwindSafe for DescriptionNameWidth
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