#[repr(C)]pub enum LayoutTableLayout {
Auto = 0,
Fixed = 1,
}Expand description
Controls the algorithm used to lay out table cells, rows, and columns.
The table-layout property determines whether the browser should use:
- auto: Column widths are determined by the content (slower but flexible)
- fixed: Column widths are determined by the first row (faster and predictable)
Variants§
Auto = 0
Use automatic table layout algorithm (content-based, default). Column width is set by the widest unbreakable content in the cells.
Fixed = 1
Use fixed table layout algorithm (first-row-based). Column width is set by the width property of the column or first-row cell. Renders faster than auto.
Trait Implementations§
Source§impl Clone for LayoutTableLayout
impl Clone for LayoutTableLayout
Source§fn clone(&self) -> LayoutTableLayout
fn clone(&self) -> LayoutTableLayout
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 LayoutTableLayout
impl Debug for LayoutTableLayout
Source§impl Default for LayoutTableLayout
impl Default for LayoutTableLayout
Source§impl FormatAsRustCode for LayoutTableLayout
impl FormatAsRustCode for LayoutTableLayout
fn format_as_rust_code(&self, _tabs: usize) -> String
Source§impl From<LayoutTableLayout> for CssProperty
impl From<LayoutTableLayout> for CssProperty
Source§fn from(e: LayoutTableLayout) -> Self
fn from(e: LayoutTableLayout) -> Self
Converts to this type from the input type.
Source§impl Hash for LayoutTableLayout
impl Hash for LayoutTableLayout
Source§impl Ord for LayoutTableLayout
impl Ord for LayoutTableLayout
Source§fn cmp(&self, other: &LayoutTableLayout) -> Ordering
fn cmp(&self, other: &LayoutTableLayout) -> Ordering
1.21.0 · 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 LayoutTableLayout
impl PartialEq for LayoutTableLayout
Source§impl PartialOrd for LayoutTableLayout
impl PartialOrd for LayoutTableLayout
Source§impl PrintAsCssValue for LayoutTableLayout
impl PrintAsCssValue for LayoutTableLayout
fn print_as_css_value(&self) -> String
impl Copy for LayoutTableLayout
impl Eq for LayoutTableLayout
impl StructuralPartialEq for LayoutTableLayout
Auto Trait Implementations§
impl Freeze for LayoutTableLayout
impl RefUnwindSafe for LayoutTableLayout
impl Send for LayoutTableLayout
impl Sync for LayoutTableLayout
impl Unpin for LayoutTableLayout
impl UnwindSafe for LayoutTableLayout
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