pub struct AstCache { /* private fields */ }Expand description
AST cache for parsed syntax trees
Implementations§
Source§impl AstCache
impl AstCache
Sourcepub fn invalidate(&self, uri: &str)
pub fn invalidate(&self, uri: &str)
Invalidate cache entry for a document
Sourcepub fn metrics(&self) -> CacheMetrics
pub fn metrics(&self) -> CacheMetrics
Get cache metrics
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AstCache
impl RefUnwindSafe for AstCache
impl Send for AstCache
impl Sync for AstCache
impl Unpin for AstCache
impl UnwindSafe for AstCache
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