group_changed_attrs

Function group_changed_attrs 

Source
pub fn group_changed_attrs(
    attrs: &[Attr],
    max_line_width: usize,
    indent_width: usize,
) -> Vec<ChangedGroup>
Expand description

Group changed attributes into lines that fit within max line width.

Uses greedy bin-packing: add attributes to the current group until the next one would exceed the width limit, then start a new group.