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 π
- Interner
Inner π - Nix string values
- NixString
Inner πThis type is never instantiated, but serves to document the memory layout of the actual heap allocation for Nix strings.
Constants§
- INTERNER π
- INTER
N_ π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.