Expand description
This module implements Nix language strings.
See NixString
for more information about the internals of string values
Re-exports§
pub use context::NixContext;
pub use context::NixContextElement;
Modules§
- context 🔒
Structs§
- Interner 🔒
- Nix string values
- This type is never instantiated, but serves to document the memory layout of the actual heap allocation for Nix strings.
Constants§
- INTERNER 🔒
- Set non-scientifically. TODO(aspen): think more about what this should be
Functions§
- hash 🔒
- Return true if this string is a keyword – character strings which lexically match the “identifier” production but are not parsed as identifiers. See also cppnix commit b72bc4a972fe568744d98b89d63adcd504cb586c.
- Return true if this string can be used as an identifier in Nix.
- Escape a Nix string for display, as most user-visible representation are escaped strings.