1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
//! Reader for Stata dictionary (`.dct`) files.
//!
//! A `.dct` dictionary describes the schema of a fixed-width or
//! free-format plain-text data file. This module parses the
//! dictionary, then iterates observations from the associated data
//! file. Data may be embedded after the dictionary's closing `}` or
//! live in a separate file; see [`DctSource`](crate::stata::dct::DctSource).
//!
//! Unlike the binary DTA format, DCT files are plain ASCII and never
//! carry `strL` references, so the DCT-domain
//! [`Value`](crate::stata::dct::Value) /
//! [`VariableType`](crate::stata::dct::VariableType) types
//! deliberately diverge from their DTA counterparts.
//!
//! # Line endings
//!
//! Both Unix `\n` and Windows `\r\n` line endings are accepted in
//! both the dictionary file and its associated data file. Classic
//! Mac `\r`-only line endings are not — Stata never emitted them and
//! supporting them would require a different reading strategy. A
//! `\r`-delimited file would be read as a single very long line.
/// Async data-row reader paired with a parsed schema.
/// Per-variable column declaration parsed from the dictionary.
/// Where a column's first byte sits within its physical line —
/// statically known or runtime-resolved.
/// Error type for DCT parsing and reading.
/// Data-row reader paired with a parsed schema.
/// Options builder for constructing a [`DctReader`].
/// External vs. embedded data classification returned by the parser.
/// Options builder for parsing a [`DctSource`].
/// Non-fatal warning channel.
/// Input format vocabulary derived from the `%infmt` token.
/// Observation that decodes its values on demand.
/// Numeric sub-format (fixed-point, general, scientific) implied by a
/// fixed-width numeric `%infmt`.
/// A single parsed observation.
/// The parsed dictionary, excluding data.
/// A single parsed cell value.
/// Storage type vocabulary used by `DctColumn`.
pub use AsyncDctReader;
pub use Column;
pub use ColumnAnchor;
pub use ;
pub use DctReader;
pub use DctReaderOptions;
pub use DctSource;
pub use DctSourceOptions;
pub use DctWarning;
pub use InputFormat;
pub use LazyRecord;
pub use NumericStyle;
pub use Record;
pub use Schema;
pub use Value;
pub use VariableType;