pub enum EvalRunError {
Run {
index: usize,
source: RunError,
},
CaseOutOfRange {
requested: usize,
suite_size: usize,
},
}Expand description
Why scoring an eval suite failed.
Either a case’s submission could not be run through the pipeline — the
interpreter failed to launch or the provider call failed — or a --case N
selection was out of range. A scoring run is all-or-nothing, since a missing
verdict cannot be scored as either polarity; the run failure names the
offending case so an instructor can find it.
Variants§
Run
A case’s submission failed to run through the pipeline.
Fields
CaseOutOfRange
A --case N selection named a case outside the suite.
Carries the user’s requested number and the suite size; the CLI maps this
to exit 1 with a stderr message naming suite_size.
Trait Implementations§
Source§impl Debug for EvalRunError
impl Debug for EvalRunError
Source§impl Display for EvalRunError
impl Display for EvalRunError
Source§impl Error for EvalRunError
impl Error for EvalRunError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for EvalRunError
impl !RefUnwindSafe for EvalRunError
impl Send for EvalRunError
impl Sync for EvalRunError
impl Unpin for EvalRunError
impl !UnwindSafe for EvalRunError
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