Skip to main content

validate_name

Function validate_name 

Source
fn validate_name(s: &[u8]) -> Result<&StorePathName, ParseStorePathNameError>
Expand description

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