Skip to main content

split_v_n_flex

Function split_v_n_flex 

Source
pub fn split_v_n_flex<const N: usize>(
    area: Rect,
    constraints: [Constraint; N],
    flex: Flex,
) -> [Rect; N]
Expand description

Split area into stacked rows top-to-bottom, like split_v_n, but with explicit control over how leftover space is placed via Flex, like split_v_flex.

Never allocates, for any N; never panics, for the same reason as split_v_flex.