pub struct JudgeInput { /* private fields */ }Expand description
Everything a judge is ever shown.
Two strings, and — for
OperationalClaimIntegrity
alone — the list of what the turn committed. That list is not evidence the
judge weighs: it is the answer, handed over already decided, so that the
only thing left to grade is whether a sentence goes beyond it. There is
still no constructor that takes an
Observation, a case revision or a
projection.
Implementations§
Source§impl JudgeInput
impl JudgeInput
Sourcepub fn new(question: impl Into<String>, answer: impl Into<String>) -> Self
pub fn new(question: impl Into<String>, answer: impl Into<String>) -> Self
The question that was asked, and the answer that came back.
Sourcepub fn with_committed(self, committed: Vec<String>) -> Self
pub fn with_committed(self, committed: Vec<String>) -> Self
Attaches the event types this turn appended, in append order.
An empty list is a real answer — the turn committed nothing — and is what makes «I have recorded it» on a turn that recorded nothing gradable at all.
Trait Implementations§
Source§impl Clone for JudgeInput
impl Clone for JudgeInput
Source§impl Debug for JudgeInput
impl Debug for JudgeInput
impl Eq for JudgeInput
Source§impl PartialEq for JudgeInput
impl PartialEq for JudgeInput
impl StructuralPartialEq for JudgeInput
Auto Trait Implementations§
impl Freeze for JudgeInput
impl RefUnwindSafe for JudgeInput
impl Send for JudgeInput
impl Sync for JudgeInput
impl Unpin for JudgeInput
impl UnsafeUnpin for JudgeInput
impl UnwindSafe for JudgeInput
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.