pub struct AgreementLog { /* private fields */ }Expand description
Accumulates an AgreementReport one compared answer at a time.
Implementations§
Source§impl AgreementLog
impl AgreementLog
Sourcepub fn new(cheap: AdapterId, expensive: AdapterId) -> Self
pub fn new(cheap: AdapterId, expensive: AdapterId) -> Self
An empty log comparing cheap against expensive.
Sourcepub fn observe(
&self,
kind: &QuestionKind,
cheap: &Answer,
expensive: &Answer,
expected: Option<&AnswerValue>,
item: Option<usize>,
)
pub fn observe( &self, kind: &QuestionKind, cheap: &Answer, expensive: &Answer, expected: Option<&AnswerValue>, item: Option<usize>, )
Records one question both adapters answered, graded against
expected when there is one. item is the corpus index, if any.
Sourcepub fn report(&self) -> AgreementReport
pub fn report(&self) -> AgreementReport
The evidence so far.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for AgreementLog
impl RefUnwindSafe for AgreementLog
impl Send for AgreementLog
impl Sync for AgreementLog
impl Unpin for AgreementLog
impl UnsafeUnpin for AgreementLog
impl UnwindSafe for AgreementLog
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