pub struct TestEngine<I: AsRef<Path>, O: AsRef<Path>> { /* private fields */ }
Expand description
Facilitates the execution of problem solving code.
Implementations§
Source§impl<I: AsRef<Path>, O: AsRef<Path>> TestEngine<I, O>
impl<I: AsRef<Path>, O: AsRef<Path>> TestEngine<I, O>
Sourcepub fn new(input_file_path: I, output_file_path: O) -> TestEngine<I, O>
pub fn new(input_file_path: I, output_file_path: O) -> TestEngine<I, O>
Creates a new test engine using the specified input and output file paths.
Calling this method is cheap; no files are opened until TestEngine::run()
is called.
Source§impl TestEngine<OsString, OsString>
impl TestEngine<OsString, OsString>
Sourcepub fn from_args() -> TestEngine<OsString, OsString>
pub fn from_args() -> TestEngine<OsString, OsString>
Creates a new test engine using input and output file paths obtained from command line arguments.
Calling this method is cheap; no files are opened until TestEngine::run()
is called.
§Panics
This method panics if either the input file path or output file path is missing.
Trait Implementations§
Auto Trait Implementations§
impl<I, O> Freeze for TestEngine<I, O>
impl<I, O> RefUnwindSafe for TestEngine<I, O>where
I: RefUnwindSafe,
O: RefUnwindSafe,
impl<I, O> Send for TestEngine<I, O>
impl<I, O> Sync for TestEngine<I, O>
impl<I, O> Unpin for TestEngine<I, O>
impl<I, O> UnwindSafe for TestEngine<I, O>where
I: UnwindSafe,
O: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more