Skip to main content

LayoutExt

Trait LayoutExt 

Source
pub trait LayoutExt: 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§

Source

fn get_layout(&mut self) -> &mut LayoutData

Returns a mutable reference to the element’s layout data.

Provided Methods§

Source

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.

Implementors§