Skip to main content

LayoutEngine

Trait LayoutEngine 

Source
pub trait LayoutEngine {
    // Required method
    fn compute_layout(
        &mut self,
        root: NodeId,
        max_size: Size,
    ) -> Result<LayoutTree, NodeError>;
}
Expand description

Extension trait that equips MemoryApplier with layout computation.

Required Methods§

Source

fn compute_layout( &mut self, root: NodeId, max_size: Size, ) -> Result<LayoutTree, NodeError>

Implementations on Foreign Types§

Source§

impl LayoutEngine for MemoryApplier

Source§

fn compute_layout( &mut self, root: NodeId, max_size: Size, ) -> Result<LayoutTree, NodeError>

Implementors§