pub enum ExpectedVerdict {
Correct,
Incorrect,
}Expand description
The verdict an eval case expects the grader to return: a polarity, with no learner-facing message.
A two-variant sum type rather than a bare string, so an unknown verdict is
rejected at the parse boundary instead of carried downstream as data (§1.2).
Distinct from the runtime llm::Verdict, which also carries the feedback
message; an author’s expected outcome is pure polarity (ADR-0007).
Variants§
Correct
The submission is expected to be graded correct.
Incorrect
The submission is expected to be graded incorrect.
Implementations§
Trait Implementations§
Source§impl Clone for ExpectedVerdict
impl Clone for ExpectedVerdict
Source§fn clone(&self) -> ExpectedVerdict
fn clone(&self) -> ExpectedVerdict
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ExpectedVerdict
impl Debug for ExpectedVerdict
Source§impl From<&Verdict> for ExpectedVerdict
impl From<&Verdict> for ExpectedVerdict
Source§impl PartialEq for ExpectedVerdict
impl PartialEq for ExpectedVerdict
Source§impl Serialize for ExpectedVerdict
impl Serialize for ExpectedVerdict
impl Eq for ExpectedVerdict
impl StructuralPartialEq for ExpectedVerdict
Auto Trait Implementations§
impl Freeze for ExpectedVerdict
impl RefUnwindSafe for ExpectedVerdict
impl Send for ExpectedVerdict
impl Sync for ExpectedVerdict
impl Unpin for ExpectedVerdict
impl UnwindSafe for ExpectedVerdict
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.