Skip to main content

cached

Function cached 

Source
pub fn cached<T: Any + Send + Sync, E>(
    path: &Path,
    build: impl FnOnce() -> Result<T, E>,
) -> Result<Arc<T>, E>
Expand description

The index of path: the one kept, or build’s, which is then kept.