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?
Thank you! We'll create more content like this.
Thank you for helping us improve!