pub struct ParserCache { /* private fields */ }
Expand description
Parser cache for AST reuse
Implementations§
Source§impl ParserCache
impl ParserCache
Sourcepub fn stats(&self) -> CacheStats
pub fn stats(&self) -> CacheStats
Get cache statistics
Sourcepub fn invalidate(&mut self, path: &Path)
pub fn invalidate(&mut self, path: &Path)
Invalidate cache entry for a path
Trait Implementations§
Source§impl Clone for ParserCache
impl Clone for ParserCache
Auto Trait Implementations§
impl Freeze for ParserCache
impl RefUnwindSafe for ParserCache
impl Send for ParserCache
impl Sync for ParserCache
impl Unpin for ParserCache
impl UnwindSafe for ParserCache
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