Trait CommitExt

Source
pub trait CommitExt {
    // Required method
    fn walk_diffs<T, F>(&self, repo: &Repository, f: F) -> Result<(), GitError>
       where F: FnMut(Diff<'_>) -> T,
             T: WalkOutput;

    // Provided method
    fn walk_changes<T, F>(
        &self,
        repo: &Repository,
        format: DiffFormat,
        f: F,
    ) -> Result<(), GitError>
       where F: FnMut(DiffDelta<'_>, Option<DiffHunk<'_>>, DiffLine<'_>) -> T,
             T: WalkOutput { ... }
}

Required Methods§

Source

fn walk_diffs<T, F>(&self, repo: &Repository, f: F) -> Result<(), GitError>
where F: FnMut(Diff<'_>) -> T, T: WalkOutput,

Provided Methods§

Source

fn walk_changes<T, F>( &self, repo: &Repository, format: DiffFormat, f: F, ) -> Result<(), GitError>
where F: FnMut(DiffDelta<'_>, Option<DiffHunk<'_>>, DiffLine<'_>) -> 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 CommitExt for Commit<'_>

Source§

fn walk_diffs<T, F>(&self, repo: &Repository, f: F) -> Result<(), GitError>
where F: FnMut(Diff<'_>) -> T, T: WalkOutput,

Implementors§