Skip to main content

Module input

Module input 

Source
Expand description

Input pipeline: format sniffing, parsing, and §4.2 items detection.

The pipeline is two phases:

  1. sniff::sniff_format peeks the first ~4 KiB of the reader and returns the InputFormat plus how many BOM bytes were consumed. Content bytes are never consumed.
  2. parse::parse reads from the same reader, parses the input as that format, and returns a ParsedInput — the records to cluster, optional sidecar metadata, and any per-record skip reports (§11.1).

Re-exports§

pub use items::ItemsDetection;
pub use items::ItemsOptions;
pub use items::detect_items;
pub use items::detect_items_with_options;
pub use parse::ParseOptions;
pub use parse::ParsedInput;
pub use parse::parse;
pub use parse::parse_with_columns;
pub use parse::parse_with_columns_and_options;
pub use sniff::SniffOutcome;
pub use sniff::sniff_format;

Modules§

items
§4.2 items-array detection.
parse
Format-specific input parsing.
sniff
§4.1 input format sniffing.