pub struct AgreementBound {
pub criterion: Agreement,
pub min_agreeing: Ratio,
}Expand description
When a batched and an unbatched answer agree, and how many must.
Fields§
§criterion: Agreement§min_agreeing: RatioThe least share of comparable pairs that agree.
Implementations§
Source§impl AgreementBound
impl AgreementBound
Sourcepub fn agrees(&self, pair: &PairedAnswer) -> Option<bool>
pub fn agrees(&self, pair: &PairedAnswer) -> Option<bool>
Whether a pair agrees, or None when it is not comparable: both
sides failed. A failure on one side only is a disagreement.
Trait Implementations§
Source§impl Clone for AgreementBound
impl Clone for AgreementBound
impl Copy for AgreementBound
Source§impl Debug for AgreementBound
impl Debug for AgreementBound
Source§impl<'de> Deserialize<'de> for AgreementBound
impl<'de> Deserialize<'de> for AgreementBound
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for AgreementBound
Source§impl PartialEq for AgreementBound
impl PartialEq for AgreementBound
Source§impl Serialize for AgreementBound
impl Serialize for AgreementBound
impl StructuralPartialEq for AgreementBound
Auto Trait Implementations§
impl Freeze for AgreementBound
impl RefUnwindSafe for AgreementBound
impl Send for AgreementBound
impl Sync for AgreementBound
impl Unpin for AgreementBound
impl UnsafeUnpin for AgreementBound
impl UnwindSafe for AgreementBound
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