Skip to main content

Mojo function

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.

Was this page helpful?