Skip to main content

load

Function load 

Source
pub fn load<C: Decode<()> + Default + 'static>(
    path: impl AsRef<Path>,
) -> Result<C, Text>
Expand description

Tries to load the cache stored by Duat for the given type

The cache must have been previously stored by cache::store. If it does not exist, or the buffer can’t be correctly interpreted, returns None