Module papyri_lang::utils
source · Expand description
This module contains various utility or convenience functions which may be used in multiple other modules.
Modules
- This module contains helper functions for dealing with relative paths.
- This module contains declarations for Papyri source files and spans.
- This module contains helper functions for text or string operations.
Structs
- Represents an interned name. Two names in the same
StringPool
will have the same ID if and only if they are equal as strings. - Collects pairs of (path, contents) representing files to be written to the filesystem if compilation is successful.
- A reference-counted pointer to a slice, allowing reference-counted pointers to sub-slices without copying.
- A pool of interned string names, which assigns unique IDs to names, and can be used to look up names by ID. The pool’s maximum capacity is
u32::MAX - 1
.
Type Definitions
- A set of NameIDs.
- A set of NameIDs.