Trait RepositoryExt

Source
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§

Provided Methods§

Source

fn walk_commits<T, F>(&self, f: F) -> Result<(), GitError>
where F: FnMut(Commit<'_>) -> T, T: WalkOutput,

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.

Implementations on Foreign Types§

Source§

impl RepositoryExt for Repository

Implementors§