Skip to main content

BoxWithConstraintsScope

Trait BoxWithConstraintsScope 

Source
pub trait BoxWithConstraintsScope: BoxScope {
    // Required methods
    fn constraints(&self) -> Constraints;
    fn min_width(&self) -> Dp;
    fn max_width(&self) -> Dp;
    fn min_height(&self) -> Dp;
    fn max_height(&self) -> Dp;
}
Expand description

Scope exposed to [BoxWithConstraints] content.

Required Methods§

Source

fn constraints(&self) -> Constraints

Source

fn min_width(&self) -> Dp

Source

fn max_width(&self) -> Dp

Source

fn min_height(&self) -> Dp

Source

fn max_height(&self) -> Dp

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§