#[repr(C, u8)]pub enum ColumnWidth {
Auto,
Length(PixelValue),
}Expand description
CSS column-width property: specifies the optimal width of columns.
Values: auto or a length value (e.g. 200px, 15em).
Variants§
Auto
Length(PixelValue)
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 (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 ColumnWidth
impl Debug for ColumnWidth
Source§impl Default for ColumnWidth
impl Default for ColumnWidth
Source§fn default() -> ColumnWidth
fn default() -> ColumnWidth
Returns the “default value” for a type. Read more
Source§impl FormatAsRustCode for ColumnWidth
impl FormatAsRustCode for ColumnWidth
fn format_as_rust_code(&self, _tabs: usize) -> String
Source§impl From<ColumnWidth> for CssProperty
impl From<ColumnWidth> for CssProperty
Source§fn from(e: ColumnWidth) -> Self
fn from(e: ColumnWidth) -> Self
Converts to this type from the input type.
Source§impl Hash for ColumnWidth
impl Hash for ColumnWidth
Source§impl Ord for ColumnWidth
impl Ord for ColumnWidth
Source§fn cmp(&self, other: &ColumnWidth) -> Ordering
fn cmp(&self, other: &ColumnWidth) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ColumnWidth
impl PartialEq for ColumnWidth
Source§fn eq(&self, other: &ColumnWidth) -> bool
fn eq(&self, other: &ColumnWidth) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for ColumnWidth
impl PartialOrd for ColumnWidth
Source§impl PrintAsCssValue for ColumnWidth
impl PrintAsCssValue for ColumnWidth
fn print_as_css_value(&self) -> String
impl Copy for ColumnWidth
impl Eq 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 UnsafeUnpin 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