Skip to main content

validate_name_from_os_str

Function validate_name_from_os_str 

Source
pub fn validate_name_from_os_str(
    s: &OsStr,
) -> Result<&str, ParseStorePathNameError>
Expand description

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