pub trait LayoutExtwhere
Self: Sized,{
// Required method
fn get_layout(&mut self) -> &mut LayoutData;
// Provided method
fn layout(self, layout: LayoutData) -> Self { ... }
}Expand description
Low-level access to an element’s LayoutData.
Required Methods§
Sourcefn get_layout(&mut self) -> &mut LayoutData
fn get_layout(&mut self) -> &mut LayoutData
Returns a mutable reference to the element’s layout data.
Provided Methods§
Sourcefn layout(self, layout: LayoutData) -> Self
fn layout(self, layout: LayoutData) -> Self
Replace all of the element’s layout data at once. See LayoutData.
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.