pub struct SemanticCache { /* private fields */ }Expand description
Semantic analysis cache
Implementations§
Source§impl SemanticCache
impl SemanticCache
Sourcepub fn get(&self, uri: &str, input_hash: u64) -> Option<SemanticInfo>
pub fn get(&self, uri: &str, input_hash: u64) -> Option<SemanticInfo>
Get cached semantic information
Sourcepub fn put(&self, uri: String, input_hash: u64, value: SemanticInfo)
pub fn put(&self, uri: String, input_hash: u64, value: SemanticInfo)
Store semantic information in cache
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 SemanticCache
impl RefUnwindSafe for SemanticCache
impl Send for SemanticCache
impl Sync for SemanticCache
impl Unpin for SemanticCache
impl UnwindSafe for SemanticCache
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