Skip to main content

SubcomposeLayoutScope

Trait SubcomposeLayoutScope 

Source
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§

Provided Methods§

Source

fn layout<I>(&mut self, width: f32, height: f32, placements: I) -> MeasureResult
where 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.

Implementors§