pub struct AstCache { /* private fields */ }Expand description
A SQLite-backed cache of compaction results, keyed by content hash.
Implementations§
Source§impl AstCache
impl AstCache
Sourcepub fn outline_cached(
&self,
compactor: &mut Compactor,
source: &str,
) -> Result<CompactResult>
pub fn outline_cached( &self, compactor: &mut Compactor, source: &str, ) -> Result<CompactResult>
Compact source, returning a cached result on a content-hash hit and only
invoking the Tree-sitter parser on a miss.
Auto Trait Implementations§
impl !Freeze for AstCache
impl RefUnwindSafe for AstCache
impl Send for AstCache
impl Sync for AstCache
impl Unpin for AstCache
impl UnsafeUnpin 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