Skip to main content

Module labels

Module labels 

Source
Expand description

Cell display/write metadata and diagnostic formatting for a live adam_rs::Sheet.

Labels associates display metadata (names, type-erased display and write closures) with stable CellId keys, driving crate::SheetInspector’s rendering. format_adam_error formats an adam_rs::Error as a rustc-style diagnostic when possible.

Structs§

CellMeta
Display and write metadata for a single cell.
Labels
Associates human-readable labels and type-erased closures with stable sheet IDs.
Renderer
The Renderer for a [Report]

Functions§

format_adam_error
Formats an Error as a rustc-style diagnostic when possible.
format_rounded
Formats a floating-point value for display, rounded to 2 decimal places with trailing zeros (and a bare trailing decimal point) trimmed.
labels_from_cell_names
Builds a Labels from an adam-lang-style declaration-ordered cell name map.

Type Aliases§

WriteStrFn
Type-erased write closure: parses a string and writes it to a cell.