/// `check` with a standard trait-based implementation.
`check` with a standard trait-based implementation.
` check ` with a standard trait - based implementation .
pub fn check_file<T: CheckFile>(
        self,
        path_in_trial: &Path,
        expected_path: &Path,
        other: T::OtherArgs,
    ) -> Self {
        let path_in_trial = path_in_trial.to_owned();
        let expected_path = expected_path.to_owned();
        let checker = move |dir: &PathDir| {
            let actual = T::read_file(dir.join(&path_in_trial).as_path())?;
            let expected = T::read_file(expected_path.as_path())?;
            check_against_with_diff(&expected, &actual, other.clone());
            Ok(())
        };
        self.check(checker)
    }
pub fn check_file < T : CheckFile > ( self , path_in_trial : & Path , expected_path : & Path , other : T :: OtherArgs , ) -> Self { let path_in_trial = path_in_trial . to_owned ( ) ; let expected_path = expected_path . to_owned ( ) ; let checker = move | dir : & PathDir | { let actual = T :: read_file ( dir . join ( & path_in_trial ) . as_path ( ) ) ? ; let expected = T :: read_file ( expected_path . as_path ( ) ) ? ; check_against_with_diff ( & expected , & actual , other . clone ( ) ) ; Ok ( ( ) ) } ; self . check ( checker ) }
`check` with a standard trait-based implementation.
` check ` with a standard trait - based implementation .
self
path_in_trial
&Path
expected_path
&Path
other
T::OtherArgs