Skip to main content

analyze_grid

Function analyze_grid 

Source
pub fn analyze_grid(lines: &[&str]) -> Option<GridLayout>
Expand description

Analyze a grid table’s lines into its canonical geometry and cell tiling.

lines must already be dedented to the table’s own left edge (no container indent). Returns None when the input doesn’t form a grid (fewer than two column boundaries or fewer than two separator lines).