pub fn run<
        D: Sized + Send + Sync,
        R: Display + Sized + Send,
        P: Fn(&mut InputReader) -> D,
        S: Fn(&D) -> R + Sync
    >
        (
        self,
        p: P,
        s: S,
    ) {
        let mut reader = InputReader::new(self.input_file_path);
        let mut writer = OutputWriter::new(self.output_file_path);
        let mut current_case: usize = 1;
        let case_count = reader.get_case_count();
        while current_case <= case_count {
            writer.write_test_result(current_case, (s)(&(p)(&mut reader)));
            current_case += 1;
        }
    }
/// Consumes the test engine, executing a parser and solver once per test case.
///
/// # Panics
///
/// This method panics in the event of an I/O error.
Consumes the test engine, executing a parser and solver once per test case.
Consumes the test engine executing a parser and solver once per test case .
pub fn run<
        D: Sized + Send + Sync,
        R: Display + Sized + Send,
        P: Fn(&mut InputReader) -> D,
        S: Fn(&D) -> R + Sync
    >
        (
        self,
        p: P,
        s: S,
    ) {
        let mut reader = InputReader::new(self.input_file_path);
        let mut writer = OutputWriter::new(self.output_file_path);
        let mut current_case: usize = 1;
        let case_count = reader.get_case_count();
        while current_case <= case_count {
            writer.write_test_result(current_case, (s)(&(p)(&mut reader)));
            current_case += 1;
        }
    }
pub fn run < D : Sized + Send + Sync , R : Display + Sized + Send , P : Fn ( & mut InputReader ) -> D , S : Fn ( & D ) -> R + Sync > ( self , p : P , s : S , ) { let mut reader = InputReader :: new ( self . input_file_path ) ; let mut writer = OutputWriter :: new ( self . output_file_path ) ; let mut current_case : usize = 1 ; let case_count = reader . get_case_count ( ) ; while current_case <= case_count { writer . write_test_result ( current_case , ( s ) ( & ( p ) ( & mut reader ) ) ) ; current_case += 1 ; } }
Consumes the test engine, executing a parser and solver once per test case.
Consumes the test engine executing a parser and solver once per test case .
self
p
P
s
S
self
p
P
s
S
panics
This method panics in the event of an I/O error.
This method panics in the event of an I / O error .