pub struct SummaryCache { /* private fields */ }Implementations§
Source§impl SummaryCache
impl SummaryCache
pub fn new(db: SummaryDb) -> Self
pub fn db(&self) -> &SummaryDb
pub fn stats(&self) -> (usize, usize)
pub fn file_snapshot( &self, file_path: &str, content_hash: Option<&str>, ) -> Result<SummaryFileSnapshot>
pub fn current_by_file( &self, file_path: &str, content_hash: &str, ) -> Result<Option<Vec<Summary>>>
pub fn get_or_extract_file<F>( &self, file_path: &str, content_hash: &str, extract: F, ) -> Result<SummaryCacheLookup>
pub fn invalidate_file(&self, file_path: &str, content_hash: Option<&str>)
Auto Trait Implementations§
impl !Freeze for SummaryCache
impl !RefUnwindSafe for SummaryCache
impl !Send for SummaryCache
impl !Sync for SummaryCache
impl !UnwindSafe for SummaryCache
impl Unpin for SummaryCache
impl UnsafeUnpin for SummaryCache
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