#[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.
Sourcepub const fn is_atomic_inline(&self) -> bool
pub const fn is_atomic_inline(&self) -> bool
Returns true for an ATOMIC inline-level box (CSS Display 3 §2.2 / §5.1):
inline-block, inline-flex, inline-table, inline-grid. These are
inline-level but establish their own independent formatting context and
participate in their parent’s IFC as a single opaque unit — unlike a
(non-atomic) inline box (Inline), whose content flows directly into the
IFC. is_inline_level covers both; this predicate is the distinction
between them (which the enum has variants for but previously had no way to
query).
Trait Implementations§
Source§impl Clone for LayoutDisplay
impl Clone for LayoutDisplay
Source§fn clone(&self) -> LayoutDisplay
fn clone(&self) -> LayoutDisplay
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more