pub type MeasureFn = dyn Fn(&MeasureInput<'_>) -> Result<ComputedData, MeasurementError> + Send + Sync;
Expand description
A MeasureFn
is a function that takes an input Constraint
and its children nodes,
finishes placementing inside, and returns its size (ComputedData
) or an error.