pub trait SubcomposeLayoutScope {
// Required method
fn constraints(&self) -> Constraints;
// Provided method
fn layout<I>(
&mut self,
width: f32,
height: f32,
placements: I,
) -> MeasureResult
where I: IntoIterator<Item = Placement> { ... }
}Expand description
Base trait for measurement scopes.
Required Methods§
fn constraints(&self) -> Constraints
Provided Methods§
fn layout<I>(&mut self, width: f32, height: f32, placements: I) -> MeasureResultwhere
I: IntoIterator<Item = Placement>,
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.