Skip to main content

BoxScope

Trait BoxScope 

Source
pub trait BoxScope {
    // Required method
    fn align(&self, alignment: Alignment) -> Modifier;
}
Expand description

Child alignment modifiers for a Box.

Required Methods§

Source

fn align(&self, alignment: Alignment) -> Modifier

Align content within the Box on both axes.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§