pub struct SymbolIndexCache { /* private fields */ }Expand description
Symbol index cache
Implementations§
Source§impl SymbolIndexCache
impl SymbolIndexCache
Sourcepub fn get(&self, uri: &str, input_hash: u64) -> Option<HashMap<String, usize>>
pub fn get(&self, uri: &str, input_hash: u64) -> Option<HashMap<String, usize>>
Get cached symbol index
Sourcepub fn put(&self, uri: String, input_hash: u64, value: HashMap<String, usize>)
pub fn put(&self, uri: String, input_hash: u64, value: HashMap<String, usize>)
Store symbol index 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 SymbolIndexCache
impl RefUnwindSafe for SymbolIndexCache
impl Send for SymbolIndexCache
impl Sync for SymbolIndexCache
impl Unpin for SymbolIndexCache
impl UnwindSafe for SymbolIndexCache
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