pub enum Width {
Fixed(usize),
Bounded {
min: Option<usize>,
max: Option<usize>,
},
Fill,
Fraction(usize),
}Expand description
Specifies how a column determines its width.
Variants§
Fixed(usize)
Fixed width in display columns.
Bounded
Width calculated from content, constrained by optional min/max bounds.
Fields
Fill
Expand to fill all remaining space. Multiple Fill columns share remaining space equally.
Fraction(usize)
Proportional: takes n parts of the remaining space.
Fraction(2) gets twice the space of Fraction(1) or Fill.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Width
impl<'de> Deserialize<'de> for Width
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Width
impl StructuralPartialEq for Width
Auto Trait Implementations§
impl Freeze for Width
impl RefUnwindSafe for Width
impl Send for Width
impl Sync for Width
impl Unpin for Width
impl UnwindSafe for Width
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.