pub enum GrepVerification {
ExactMatch,
UnorderedMatch,
SubsetMatch {
claimed: usize,
actual: usize,
},
HasFalsePositives {
false_positives: Vec<(usize, String)>,
},
HasFalseNegatives {
false_negatives: Vec<(usize, String)>,
},
Mismatch,
CannotVerify {
reason: String,
},
}Expand description
Result of grep oracle verification.
Variants§
ExactMatch
Answer matches ground truth exactly.
UnorderedMatch
Answer matches but in different order.
SubsetMatch
Answer is a subset of ground truth (partial).
HasFalsePositives
Answer contains claims not in ground truth (false positives).
HasFalseNegatives
Answer is missing ground truth items (false negatives).
Mismatch
Answer is completely different.
CannotVerify
Could not infer pattern from query.
Trait Implementations§
Source§impl Clone for GrepVerification
impl Clone for GrepVerification
Source§fn clone(&self) -> GrepVerification
fn clone(&self) -> GrepVerification
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 GrepVerification
impl Debug for GrepVerification
Source§impl PartialEq for GrepVerification
impl PartialEq for GrepVerification
Source§fn eq(&self, other: &GrepVerification) -> bool
fn eq(&self, other: &GrepVerification) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for GrepVerification
Auto Trait Implementations§
impl Freeze for GrepVerification
impl RefUnwindSafe for GrepVerification
impl Send for GrepVerification
impl Sync for GrepVerification
impl Unpin for GrepVerification
impl UnsafeUnpin for GrepVerification
impl UnwindSafe for GrepVerification
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