Function nix_compat::store_path::validate_name

source ยท
pub(crate) fn validate_name(
    s: &(impl AsRef<[u8]> + ?Sized),
) -> Result<&str, Error>
Expand description

Checks a given &u8 to match the restrictions for StorePath::name, and returns the name as string if successful.