pub struct SemanticParseCache { /* private fields */ }Expand description
Shared cache for parsed semantic artifacts.
Implementations§
Source§impl SemanticParseCache
impl SemanticParseCache
Returns the process-wide cache instance.
Sourcepub fn parse(&self, source: &str, language: Language) -> Option<Arc<ParsedFile>>
pub fn parse(&self, source: &str, language: Language) -> Option<Arc<ParsedFile>>
Parse a source file, reusing a cached AST when available.
Sourcepub fn stats(&self) -> SemanticParseCacheStats
pub fn stats(&self) -> SemanticParseCacheStats
Returns current cache counters.
Trait Implementations§
Source§impl Debug for SemanticParseCache
impl Debug for SemanticParseCache
Auto Trait Implementations§
impl !Freeze for SemanticParseCache
impl RefUnwindSafe for SemanticParseCache
impl Send for SemanticParseCache
impl Sync for SemanticParseCache
impl Unpin for SemanticParseCache
impl UnsafeUnpin for SemanticParseCache
impl UnwindSafe for SemanticParseCache
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