pub struct Runner<'a, R, W> { /* private fields */ }Expand description
A basic program runner.
This runner runs the entire program at once.
Implementations§
Source§impl<'a, R, W> Runner<'a, R, W>
impl<'a, R, W> Runner<'a, R, W>
Sourcepub fn new(program: &'a Program, input: R, output: W) -> Self
pub fn new(program: &'a Program, input: R, output: W) -> Self
Create a new runner with the given inputand output.
Sourcepub fn with_memsize(
program: &'a Program,
input: R,
output: W,
memsize: MemorySize,
) -> Self
pub fn with_memsize( program: &'a Program, input: R, output: W, memsize: MemorySize, ) -> Self
Create a new runner with the given input, output and memory size.
Sourcepub fn run(self) -> Result<(), RuntimeError>
pub fn run(self) -> Result<(), RuntimeError>
Run the program.
Auto Trait Implementations§
impl<'a, R, W> Freeze for Runner<'a, R, W>
impl<'a, R, W> RefUnwindSafe for Runner<'a, R, W>where
R: RefUnwindSafe,
W: RefUnwindSafe,
impl<'a, R, W> Send for Runner<'a, R, W>
impl<'a, R, W> Sync for Runner<'a, R, W>
impl<'a, R, W> Unpin for Runner<'a, R, W>
impl<'a, R, W> UnwindSafe for Runner<'a, R, W>where
R: UnwindSafe,
W: 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