pub trait OofItemStyle: CoreStyle {
// Provided methods
fn align_self(&self) -> Option<AlignSelf> { ... }
fn justify_self(&self) -> Option<AlignSelf> { ... }
fn is_table(&self) -> bool { ... }
fn grid_row(&self) -> Line<GridPlacement<Self::CustomIdent>> { ... }
fn grid_column(&self) -> Line<GridPlacement<Self::CustomIdent>> { ... }
}Expand description
The styles of an out-of-flow (position: absolute / position: fixed) box that are read by
its containing block’s out-of-flow positioning pass
Provided Methods§
Sourcefn align_self(&self) -> Option<AlignSelf>
fn align_self(&self) -> Option<AlignSelf>
How the box is aligned in the block axis of its inset-modified containing block
(align-self). None corresponds to normal/auto.
Sourcefn justify_self(&self) -> Option<AlignSelf>
fn justify_self(&self) -> Option<AlignSelf>
How the box is aligned in the inline axis of its inset-modified containing block
(justify-self). None corresponds to normal/auto.
Sourcefn is_table(&self) -> bool
fn is_table(&self) -> bool
Whether the box is a table wrapper box. A normal self-alignment does not stretch
tables to fill their inset-modified containing block.
Sourcefn grid_row(&self) -> Line<GridPlacement<Self::CustomIdent>>
fn grid_row(&self) -> Line<GridPlacement<Self::CustomIdent>>
Defines which row in the grid the box should start and end at, when the box’s containing block is a grid container
Sourcefn grid_column(&self) -> Line<GridPlacement<Self::CustomIdent>>
fn grid_column(&self) -> Line<GridPlacement<Self::CustomIdent>>
Defines which column in the grid the box should start and end at, when the box’s containing block is a grid container
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".