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§
Structs§
- Interner π
- InternerInner π
- Nix string values
- NixStringInner πThis type is never instantiated, but serves to document the memory layout of the actual heap allocation for Nix strings.
Constants§
- INTERNER π
- INTERN_THRESHOLD πSet non-scientifically. TODO(aspen): think more about what this should be
Functions§
- hash π
- is_keyword π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.
- nix_escape_char π
- nix_escape_string πEscape a Nix string for display, as most user-visible representation are escaped strings.