pub trait RepositoryExt {
// Required methods
fn commits(&self) -> Result<Commits<'_>, GitError>;
fn count_commits(&self) -> Result<usize, GitError>;
// Provided method
fn walk_commits<T, F>(&self, f: F) -> Result<(), GitError>
where F: FnMut(Commit<'_>) -> T,
T: WalkOutput { ... }
}
Required Methods§
fn commits(&self) -> Result<Commits<'_>, GitError>
fn count_commits(&self) -> Result<usize, GitError>
Provided Methods§
fn walk_commits<T, F>(&self, f: F) -> Result<(), GitError>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.