pub struct AnalysisCache { /* private fields */ }Implementations§
Source§impl AnalysisCache
impl AnalysisCache
pub fn new(cache_dir: impl AsRef<Path>) -> Self
pub fn get_metadata(path: &Path) -> Result<FileMetadata, Error>
pub fn is_file_changed(&self, path: &Path) -> Result<bool, Error>
pub fn get_cached_analysis(&self, path: &Path) -> Option<&CachedAnalysis>
pub fn store_analysis( &mut self, path: PathBuf, issues: Vec<Issue>, ast_hash: Option<u64>, ) -> Result<(), Error>
pub fn remove_file(&mut self, path: &Path)
pub fn cleanup_stale_entries(&mut self)
pub fn save(&mut self) -> Result<(), Box<dyn Error>>
pub fn load(&mut self) -> Result<(), Box<dyn Error>>
pub fn cache_stats(&self) -> CacheStats
Trait Implementations§
Source§impl Debug for AnalysisCache
impl Debug for AnalysisCache
Source§impl Default for AnalysisCache
impl Default for AnalysisCache
Source§fn default() -> AnalysisCache
fn default() -> AnalysisCache
Returns the “default value” for a type. Read more
Source§impl Drop for AnalysisCache
impl Drop for AnalysisCache
Auto Trait Implementations§
impl Freeze for AnalysisCache
impl RefUnwindSafe for AnalysisCache
impl Send for AnalysisCache
impl Sync for AnalysisCache
impl Unpin for AnalysisCache
impl UnsafeUnpin for AnalysisCache
impl UnwindSafe for AnalysisCache
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more