pub trait Layout {
// Required methods
fn layout_sub_layers(
&mut self,
layer: &mut Layer,
parent_layer: Option<&Layer>,
stretch: &mut Option<Stretch>,
);
fn update_layout(
&mut self,
layer: &mut Layer,
stretch: &mut Option<Stretch>,
);
fn finalize(&mut self);
}Required Methods§
fn layout_sub_layers( &mut self, layer: &mut Layer, parent_layer: Option<&Layer>, stretch: &mut Option<Stretch>, )
fn update_layout(&mut self, layer: &mut Layer, stretch: &mut Option<Stretch>)
fn finalize(&mut self)
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".