pub struct SimpleFileCache { /* private fields */ }Expand description
Simple file cache with basic functionality as per spec
Implementations§
Source§impl SimpleFileCache
impl SimpleFileCache
Sourcepub fn load_file_fast<P: AsRef<Path>>(
&self,
path: P,
) -> Result<String, Box<dyn Error>>
pub fn load_file_fast<P: AsRef<Path>>( &self, path: P, ) -> Result<String, Box<dyn Error>>
Load file fast using cache-first strategy (as per spec)
Load file fast with shared ownership - avoids cloning for better memory efficiency
Sourcepub fn invalidate_file<P: AsRef<Path>>(&self, path: P)
pub fn invalidate_file<P: AsRef<Path>>(&self, path: P)
Invalidate cache entry for specific file
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SimpleFileCache
impl RefUnwindSafe for SimpleFileCache
impl Send for SimpleFileCache
impl Sync for SimpleFileCache
impl Unpin for SimpleFileCache
impl UnsafeUnpin for SimpleFileCache
impl UnwindSafe for SimpleFileCache
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more