Expand description
The row inspector: every field of the selected row and the focused field’s whole
value, as one Surface titled with the row. Under 140 columns the fields list above
the value; wider, fields fill columns on the left and the value runs full height on
the right. Tab moves focus (and the rail). The value pane wraps only on-screen rows
(crate::inspector::inspector_reader), so a 2 MiB value’s end is a key away.
Re-exports§
pub use crate::inspector::inspector_reader::Tone;
Structs§
- Compared
- The rows Compare puts beside a row: the pinned one, or the next; and from
WIDER, unpinned, the row before it too, the three in row order. - Layout
- Where each part of the inspector goes inside the Surface.
- List
Shape - What the side-by-side layout sizes the field list from.
- Pane
- The value pane for the focused value: what its rule says, what it reads, the
views it has and the one shown, and what
ycopies. - PaneAsk
- Everything a pane is built from beside the value.
Enums§
- CopyAs
- What
ycopies from the pane. - Fill
- Whether a field holds something: a value, nothing (null or empty), or not known until it is read.
- Indented
- Where an indented copy of long JSON text stands.
- Shown
- What the inspector has for one field of the row.
- Unpacked
- Where text decompressed from gzip or zstd bytes stands, for the pane.
Constants§
- PRETTY_
MAX - JSON text up to this long has a JSON view; longer text reads raw.
- WIDE
- The Surface’s inner width from which the fields and the value sit side by side: a 140-column terminal.
- WIDER
- The Surface’s inner width from which a row with bytes gives the value pane a 32-byte hex row: a 240-column terminal.
Functions§
- codebook_
lines - The codebook’s lines for a field: its meaning and unit, then what the value under the cursor stands for when the codebook lists it.
- compared
- What Compare puts beside
row, while it is on. - differs
- Whether two rows’ values of a field differ; None when either is not read.
- fill_of
- layout
- Lay out
contentforfieldsand a value needingvalue_needrows. BelowWIDEthe list sits above, taking what it needs; fromWIDEside by side at full height, the valuevalue_pane_widthwide, fields in columns oflist.min_col. By content, never focus, so Tab moves nothing. - list_
window - Where the list starts for
capslots ofnitems, focus atsel, last startoffset; and whether the first and last slots count items above and below. - node_
pane - The value pane for an item of a level drilled into, labelled
label. - pane
- The value pane for
shown, a value of typedtype. - refresh_
list - Keep the fields listed for
row, the row shown, asvisible_fieldshas them: worked out again only when something they depend on changed. - render
- Draw the inspector over
areafor the table’s selected row. - row_
json - The row as one JSON object in table order: exact numbers, text and dates as strings, lists and structs as JSON, bytes as base64. Unread fields are omitted and counted.
- shown
fieldofrow: from the buffer, or from what was read for the row.- size_
text - A byte count as people read it, and exactly:
1.0 MiB (1,048,576 bytes). - type_
text - A type as the pane names it, with the unit and zone the short label drops.
ASCII only:
us, notμs. - value_
opens - Whether Enter opens
valueas a level: a list, array or struct, or text that reads as a JSON object or array. - visible_
fields - The fields listed, in order: the chosen order, then the nulls toggle (or, comparing, only differing fields), then the find (names, then values).