Skip to main content

load_cached_ast

Function load_cached_ast 

Source
pub fn load_cached_ast(path: &Path) -> Result<Arc<ConfigAst>>
Expand description

Read and parse the config at path, memoized on its (mtime, len) stamp.

§Errors

As std::fs::metadata / std::fs::read_to_string on the underlying file.

§Panics

Only if the cache mutex is poisoned.