Skip to main content

Module name

Module name 

Source

Structs§

StorePathName
Validated name of a store path.
StorePathNameBuf
An owned validated name of a store path.

Enums§

ParseStorePathNameError
Error returned when creating a StorePathName.

Constants§

DRV_EXT
Extension for derivation names.
MAX_NAME_LEN
Maximum number of bytes in a store path name.

Statics§

NAME_CHARS 🔒
NAME_CHARS contains true for bytes that are valid in store path names.

Functions§

validate_name 🔒
Checks a given &[u8] to match the restrictions for StorePathName, and returns the name as &StorePathName if successful.