pub struct Cache { /* private fields */ }Implementations§
Source§impl Cache
impl Cache
pub fn new<CP: AsRef<Path>, RP: AsRef<Path>>( cache_path: Option<CP>, repo_path: RP, ) -> Result<Self>
pub fn get_commit_stats(&self, range: &DateRange) -> Result<Vec<CommitStats>>
pub fn store_commit_stats( &mut self, commits: &[CommitStats], infos: &HashMap<String, CommitInfo>, ) -> Result<()>
pub fn get_missing_commits( &self, all_commit_ids: &[String], ) -> Result<Vec<String>>
pub fn get_commit_info(&self, commit_id: &str) -> Result<Option<CommitInfo>>
Auto Trait Implementations§
impl !Freeze for Cache
impl !RefUnwindSafe for Cache
impl !Sync for Cache
impl !UnwindSafe for Cache
impl Send for Cache
impl Unpin for Cache
impl UnsafeUnpin for Cache
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
impl<T> ErasedDestructor for Twhere
T: 'static,
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