Skip to main content

Layout

Trait Layout 

Source
pub trait Layout: Send + Sync {
    // Required methods
    fn axis(&self) -> Axis;
    fn spacing(&self) -> f32;
}
Expand description

A layout strategy that controls how children are arranged.

Required Methods§

Source

fn axis(&self) -> Axis

Primary layout axis.

Source

fn spacing(&self) -> f32

Spacing between children in logical pixels.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§