For the complete Mojo documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /docs/manual/basics.md).
format_layout
format_layout[W: Writer](layout: Layout, mut writer: W)
Formats a 2D layout as a table and writes it to the specified writer.
This function creates a visual representation of a 2D layout as a table showing the memory indices for each logical coordinate.
Parameters:
- W (
Writer): Type parameter representing a Writer implementation.
Args:
- layout (
Layout): The 2D layout to format. - writer (
W): The writer to output the formatted layout to.