Skip to main content

indent_blocks

Function indent_blocks 

Source
pub fn indent_blocks(lines: &[LineIndent], step: u16) -> Vec<IndentBlock>
Expand description

Expand every region into one guide per grid column it spans.

An indent jump of more than one level (opener at column 0, body at column 8, step 4) emits a guide at each intervening column over the same line range: there is no structure between those levels to give them different extents. Columns are laid on a grid anchored at the opener’s column rather than at 0, so continuation-line indentation (an opener at column 7) still produces guides that line up with the code.