Function cached_path::cached_path_with_options[][src]

pub fn cached_path_with_options(
    resource: &str,
    options: &Options
) -> Result<PathBuf, Error>

Get the cached path to a resource using the given options.

This is equivalent to calling Cache::cached_path_with_options with a temporary Cache object. Therefore if you’re going to be calling this function multiple times, it’s more efficient to create and use a single Cache instead.