Skip to main content

format_directive_lines

Function format_directive_lines 

Source
pub fn format_directive_lines(
    directive: &Directive,
    config: &FormatConfig,
) -> Vec<FormatLine>
Expand description

Render a directive into format lines (the render phase).

Callers that need file-wide alignment collect these across the whole file and align once with render_lines. Callers formatting a list of directives without surrounding source can use format_directives, which aligns the whole list together.