pub trait LayoutExtwhere
Self: Sized,{
// Required method
fn layout_mut(&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 layout_mut(&mut self) -> &mut LayoutData
fn layout_mut(&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".