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§
fn constraints(&self) -> Constraints
fn min_width(&self) -> Dp
fn max_width(&self) -> Dp
fn min_height(&self) -> Dp
fn max_height(&self) -> Dp
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".