#[repr(C)]pub enum LayoutDisplay {
Show 23 variants
None = 0,
Block = 1,
Inline = 2,
InlineBlock = 3,
Flex = 4,
InlineFlex = 5,
Table = 6,
InlineTable = 7,
TableRowGroup = 8,
TableHeaderGroup = 9,
TableFooterGroup = 10,
TableRow = 11,
TableColumnGroup = 12,
TableColumn = 13,
TableCell = 14,
TableCaption = 15,
FlowRoot = 16,
ListItem = 17,
RunIn = 18,
Marker = 19,
Grid = 20,
InlineGrid = 21,
Contents = 22,
}Expand description
Represents a display CSS property value
Variants§
None = 0
Block = 1
Inline = 2
InlineBlock = 3
Flex = 4
InlineFlex = 5
Table = 6
InlineTable = 7
TableRowGroup = 8
TableHeaderGroup = 9
TableRow = 11
TableColumnGroup = 12
TableColumn = 13
TableCell = 14
TableCaption = 15
FlowRoot = 16
ListItem = 17
RunIn = 18
Marker = 19
Grid = 20
InlineGrid = 21
Contents = 22
Implementations§
Source§impl LayoutDisplay
impl LayoutDisplay
Sourcepub const fn creates_block_context(&self) -> bool
pub const fn creates_block_context(&self) -> bool
Returns true if this display type establishes a block formatting context.
Sourcepub const fn creates_flex_context(&self) -> bool
pub const fn creates_flex_context(&self) -> bool
Returns true if this display type establishes a flex formatting context.
Sourcepub const fn creates_table_context(&self) -> bool
pub const fn creates_table_context(&self) -> bool
Returns true if this display type establishes a table formatting context.
Sourcepub const fn is_layout_internal(&self) -> bool
pub const fn is_layout_internal(&self) -> bool
Returns true for layout-internal display types (CSS Display 3 §2.4): table-row-group, table-header-group, table-footer-group, table-row, table-column-group, table-column, table-cell, table-caption.
Sourcepub const fn is_inline_level(&self) -> bool
pub const fn is_inline_level(&self) -> bool
Returns true if this display type generates an inline-level box.
Trait Implementations§
Source§impl Clone for LayoutDisplay
impl Clone for LayoutDisplay
Source§fn clone(&self) -> LayoutDisplay
fn clone(&self) -> LayoutDisplay
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 moreimpl Copy for LayoutDisplay
Source§impl Debug for LayoutDisplay
impl Debug for LayoutDisplay
Source§impl Default for LayoutDisplay
impl Default for LayoutDisplay
Source§fn default() -> LayoutDisplay
fn default() -> LayoutDisplay
Returns the “default value” for a type. Read more
impl Eq for LayoutDisplay
Source§impl FormatAsRustCode for LayoutDisplay
impl FormatAsRustCode for LayoutDisplay
fn format_as_rust_code(&self, _tabs: usize) -> String
Source§impl From<LayoutDisplay> for CssProperty
impl From<LayoutDisplay> for CssProperty
Source§fn from(e: LayoutDisplay) -> Self
fn from(e: LayoutDisplay) -> Self
Converts to this type from the input type.
Source§impl Hash for LayoutDisplay
impl Hash for LayoutDisplay
Source§impl Ord for LayoutDisplay
impl Ord for LayoutDisplay
Source§fn cmp(&self, other: &LayoutDisplay) -> Ordering
fn cmp(&self, other: &LayoutDisplay) -> 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 LayoutDisplay
impl PartialEq for LayoutDisplay
Source§impl PartialOrd for LayoutDisplay
impl PartialOrd for LayoutDisplay
Source§impl PrintAsCssValue for LayoutDisplay
impl PrintAsCssValue for LayoutDisplay
fn print_as_css_value(&self) -> String
impl StructuralPartialEq for LayoutDisplay
Auto Trait Implementations§
impl Freeze for LayoutDisplay
impl RefUnwindSafe for LayoutDisplay
impl Send for LayoutDisplay
impl Sync for LayoutDisplay
impl Unpin for LayoutDisplay
impl UnsafeUnpin for LayoutDisplay
impl UnwindSafe for LayoutDisplay
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