Skip to main content

DiffCalculator

Trait DiffCalculator 

Source
pub trait DiffCalculator<T> {
    type Error: Error + Send + 'static;
    type Diff: Diff + Send;

    // Required method
    fn diff(
        &self,
        name: &str,
        expected: T,
        actual: T,
    ) -> Result<MayUnsupported<Self::Diff>, Self::Error>;
}

Required Associated Types§

Source

type Error: Error + Send + 'static

Source

type Diff: Diff + Send

Required Methods§

Source

fn diff( &self, name: &str, expected: T, actual: T, ) -> Result<MayUnsupported<Self::Diff>, Self::Error>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§