validate_name_as_os_str

Function validate_name_as_os_str 

Source
pub fn validate_name_as_os_str(
    s: &(impl AsRef<OsStr> + ?Sized),
) -> Result<&str, Error>
Expand description

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