Trait DiffExt

Source
pub trait DiffExt {
    // Required method
    fn walk_changes<T, F>(
        &self,
        format: DiffFormat,
        f: F,
    ) -> Result<(), GitError>
       where F: FnMut(DiffDelta<'_>, Option<DiffHunk<'_>>, DiffLine<'_>) -> T,
             T: WalkOutput;
}

Required Methods§

Source

fn walk_changes<T, F>(&self, 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 DiffExt for Diff<'_>

Source§

fn walk_changes<T, F>(&self, format: DiffFormat, f: F) -> Result<(), GitError>
where F: FnMut(DiffDelta<'_>, Option<DiffHunk<'_>>, DiffLine<'_>) -> T, T: WalkOutput,

Implementors§