Trait ContainerWithContentExt

Source
pub trait ContainerWithContentExt: LayoutExt {
    // Provided methods
    fn direction(self, direction: Direction) -> Self { ... }
    fn main_align(self, main_align: Alignment) -> Self { ... }
    fn cross_align(self, cross_align: Alignment) -> Self { ... }
    fn spacing(self, spacing: f32) -> Self { ... }
    fn content(self, content: Content) -> Self { ... }
    fn center(self) -> Self { ... }
    fn offset_x(self, offset_x: impl Into<f32>) -> Self { ... }
    fn offset_y(self, offset_y: impl Into<f32>) -> Self { ... }
    fn vertical(self) -> Self { ... }
    fn horizontal(self) -> Self { ... }
}

Provided Methods§

Source

fn direction(self, direction: Direction) -> Self

Source

fn main_align(self, main_align: Alignment) -> Self

Source

fn cross_align(self, cross_align: Alignment) -> Self

Source

fn spacing(self, spacing: f32) -> Self

Source

fn content(self, content: Content) -> Self

Source

fn center(self) -> Self

Source

fn offset_x(self, offset_x: impl Into<f32>) -> Self

Source

fn offset_y(self, offset_y: impl Into<f32>) -> Self

Source

fn vertical(self) -> Self

Source

fn horizontal(self) -> Self

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§