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§