Standard Library
This directory is the sole authority for the portable public modules distributed with Nocter. Every module index.nct owns its compiler-checked public declarations and declaration doc comments. The catalog below assigns each longer observable subject to one behavior guide. A guide may span tightly coupled modules when separating their cross-operation invariants would create duplicate authorities. Declarations answer what can be called; guides explain observable behavior, failure, complexity, and invariants without repeating signatures. The package identity itself is defined by the checked root declaration.
Language constructs and target primitives are referenced from their owning specification chapters rather than redefined here. Generated contract pages show the exact checked index.nct source: only declarations with public language visibility are public API, while visible see edges and restricted declarations remain source-level module assembly and package contracts. Independent package-only modules live under std/internal and are excluded from generated navigation. The guides below cover modules whose observable behavior needs more explanation than declaration comments.
Behavior Guide Authority
| Observable subject | Sole guide | Checked contracts |
|---|---|---|
| borrowed UTF-8 text | Borrowed Text | std/str |
| owned UTF-8 text | Owned Strings | std/string |
| growable sequences | Vectors | std/vec |
| borrowed sequences | Slices | std/slice |
| iteration and collection | Iteration | std/iter, std/iter/collect |
| value formatting | Formatting | std/fmt |
| byte streams and buffering | I/O | std/io, std/io/buffer |
| paths and filesystem operations | Filesystem | std/path, std/fs |
| integer text conversion | Integer Text | std/num |
| allocation and storage failure | Allocation and Failure | std/mem |
| recoverable failure payloads | Recoverable Errors | std/error |
| pointers and addresses | Pointer and Address Conversion | std/ptr |
| hashing and unordered collections | Associative Collections | std/hash, std/map, std/set |
| JSON values, parsing, and generation | JSON Values and Text | std/json |
| durations, monotonic time, wall-clock time, and UTC calendar values | Time | std/time |
| synchronous processes and process context | Synchronous Processes | std/process |
| Unicode scalars and text transforms | Unicode Text and Scalars | std/char, Unicode operations on std/str and std/string |
| native assertions | Native Assertions | std/testing |