pub struct FileLoader { /* private fields */ }Expand description
File loader with caching and circular dependency detection
Implementations§
Source§impl FileLoader
impl FileLoader
Sourcepub fn get_cached(&self, path: &Path) -> Option<&LoadedFile>
pub fn get_cached(&self, path: &Path) -> Option<&LoadedFile>
Get a loaded file from cache (if it exists)
Sourcepub fn clear_cache(&mut self)
pub fn clear_cache(&mut self)
Clear the cache (useful for hot reload scenarios)
Sourcepub fn invalidate(&mut self, path: &Path)
pub fn invalidate(&mut self, path: &Path)
Invalidate a specific file in the cache