raui_core::layout

Trait LayoutEngine

source
pub trait LayoutEngine<E> {
    // Required method
    fn layout(
        &mut self,
        mapping: &CoordsMapping,
        tree: &WidgetUnit,
    ) -> Result<Layout, E>;
}

Required Methods§

source

fn layout( &mut self, mapping: &CoordsMapping, tree: &WidgetUnit, ) -> Result<Layout, E>

Implementations on Foreign Types§

source§

impl LayoutEngine<()> for ()

source§

fn layout( &mut self, mapping: &CoordsMapping, _: &WidgetUnit, ) -> Result<Layout, ()>

Implementors§