#[non_exhaustive]pub enum ColumnWidth {
Proportional(u32),
Percentage(u32),
Auto,
}Expand description
Column width specification
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Proportional(u32)
Proportional width (e.g., 1, 2, 3 - relative to other columns)
Percentage(u32)
Percentage width (e.g., 15%, 30%, 55%)
Auto
Auto-width - content determines width (~)
Trait Implementations§
Source§impl Clone for ColumnWidth
impl Clone for ColumnWidth
Source§fn clone(&self) -> ColumnWidth
fn clone(&self) -> ColumnWidth
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 ColumnWidth
impl Debug for ColumnWidth
Source§impl Default for ColumnWidth
impl Default for ColumnWidth
Source§impl<'de> Deserialize<'de> for ColumnWidth
impl<'de> Deserialize<'de> for ColumnWidth
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
Source§impl PartialEq for ColumnWidth
impl PartialEq for ColumnWidth
Source§impl Serialize for ColumnWidth
impl Serialize for ColumnWidth
impl Copy for ColumnWidth
impl StructuralPartialEq for ColumnWidth
Auto Trait Implementations§
impl Freeze for ColumnWidth
impl RefUnwindSafe for ColumnWidth
impl Send for ColumnWidth
impl Sync for ColumnWidth
impl Unpin for ColumnWidth
impl UnwindSafe for ColumnWidth
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