pub enum JudgeError {
NoVerdict {
said: String,
},
BadVerdict {
detail: String,
},
Adapter(String),
Failed {
criteria: String,
reasoning: String,
},
}Variants§
NoVerdict
BadVerdict
Adapter(String)
Failed
The criteria were not met — the judge worked, your code didn’t. Carries the reasoning so a failing test says why.
Trait Implementations§
Source§impl Debug for JudgeError
impl Debug for JudgeError
Source§impl Display for JudgeError
impl Display for JudgeError
Source§impl Error for JudgeError
impl Error for JudgeError
1.30.0 · 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 JudgeError
impl RefUnwindSafe for JudgeError
impl Send for JudgeError
impl Sync for JudgeError
impl Unpin for JudgeError
impl UnsafeUnpin for JudgeError
impl UnwindSafe for JudgeError
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