IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /get-started.md). For the complete documentation index, see llms.txt.
Skip to main content
For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /get-started.md).

Mojo function

format_layout

def 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.

Was this page helpful?