Skip to main content

Module inspector

Module inspector 

Source
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.
ListShape
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 y copies.
PaneAsk
Everything a pane is built from beside the value.

Enums§

CopyAs
What y copies 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 content for fields and a value needing value_need rows. Below WIDE the list sits above, taking what it needs; from WIDE side by side at full height, the value value_pane_width wide, fields in columns of list.min_col. By content, never focus, so Tab moves nothing.
list_window
Where the list starts for cap slots of n items, focus at sel, last start offset; 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 type dtype.
refresh_list
Keep the fields listed for row, the row shown, as visible_fields has them: worked out again only when something they depend on changed.
render
Draw the inspector over area for 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
field of row: 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 value as 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).