Skip to main content

Module render

Module render 

Source

Modules§

ansi
compact
text

Constants§

HEX_BYTES_PER_LINE
Number of bytes per hex dump line.
INDENT_WIDTH
Default number of spaces per indentation level.
MAX_HEX_BYTES
Maximum number of bytes shown in a raw hex dump before truncation.

Functions§

format_hex_dump
Format raw bytes as hex dump lines. Returns a Vec of formatted lines. Each line contains up to 16 bytes, with a space separator after the 8th byte. If the data exceeds MAX_HEX_BYTES, the dump is truncated and ends with ....
format_term_annotations
Format term annotations as a trailing comment: /* name: value */ If multiple terms, they are comma-separated within a single comment.
format_value
Format a value for display, returning the formatted string.
write_indent
Write indentation spaces to the output.