Skip to main content

BlockContainerStyle

Trait BlockContainerStyle 

Source
pub trait BlockContainerStyle: CoreStyle {
    // Provided methods
    fn text_align(&self) -> TextAlign { ... }
    fn align_content(&self) -> AlignContent { ... }
    fn justify_items(&self) -> AlignItems { ... }
}
Available on crate feature block_layout only.
Expand description

The set of styles required for a Block layout container

Provided Methods§

Source

fn text_align(&self) -> TextAlign

Defines which row in the grid the item should start and end at

Source

fn align_content(&self) -> AlignContent

How children of this block container are aligned in the block (cross) axis

Source

fn justify_items(&self) -> AlignItems

The default inline-axis alignment of this block container’s children (justify-items). Out-of-flow children with justify-self: auto are aligned within their static-position rectangle according to this value.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<T: BlockContainerStyle> BlockContainerStyle for &T

Implementors§