Skip to main content

split_h_n_flex

Function split_h_n_flex 

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

Split area into columns left-to-right, like split_h_n, but with explicit control over how leftover space is placed via Flex, like split_h_flex.

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