pub fn inspect_from_reader<R: Read, W: Write>(
reader: R,
writer: W,
) -> Result<()>Expand description
Deep inspection of CBOR files.
Decodes each top-level CBOR item and writes its Concise Diagnostic Notation
(CDN, RFC 8949 §8) representation followed by a newline. CDN is a
human-readable, standard rendering of CBOR: byte strings appear as
h'...', tags and bignums are rendered faithfully, and the output is more
compact and standard than Rust’s {:?} debug format.
Reads from reader in a fully streaming fashion — one item at a time — so
the input is never buffered in memory. Each item’s diagnostic text is
written straight to writer with no intermediate allocation on this side
of the crate boundary.