Function taffy::compute_leaf_layout

source ยท
pub fn compute_leaf_layout<MeasureFunction>(
    inputs: LayoutInput,
    style: &impl CoreStyle,
    measure_function: MeasureFunction,
) -> LayoutOutput
where MeasureFunction: FnOnce(Size<Option<f32>>, Size<AvailableSpace>) -> Size<f32>,
Expand description

Compute the size of a leaf node (node with no children)