pub fn cache_dir(
kizz_cache_dir: Option<&OsStr>,
xdg_cache_home: Option<&OsStr>,
home: Option<&OsStr>,
) -> Result<PathBuf, LocationError>Expand description
The cache directory from the values of KIZZ_CACHE_DIR, XDG_CACHE_HOME, and
HOME, each None when the variable is unset.
ยงErrors
LocationError::RelativeCacheDir when KIZZ_CACHE_DIR is relative, and
LocationError::NoHome when HOME is needed but unusable.