#[non_exhaustive]pub enum Headline {
Measured(HeadlineFigures),
Withheld(WithheldHeadline),
}Expand description
The figures of a comparison, or the reason there are none.
There is no accessor anywhere that produces a pass-rate delta outside
HeadlineFigures, which is what makes the refusal a refusal rather than a
warning a caller can step over.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Measured(HeadlineFigures)
Enough of the corpus stayed paired for the figures to mean something.
Withheld(WithheldHeadline)
Too much of the corpus went unpaired. No figure is produced.
Implementations§
Source§impl Headline
impl Headline
Sourcepub const fn figures(&self) -> Option<&HeadlineFigures>
pub const fn figures(&self) -> Option<&HeadlineFigures>
The figures, when there are any.
Sourcepub const fn withheld(&self) -> Option<&WithheldHeadline>
pub const fn withheld(&self) -> Option<&WithheldHeadline>
The refusal, when the headline was withheld.
The fraction of the paired corpus that was excluded — reported whether or not there is a figure beside it.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Headline
impl<'de> Deserialize<'de> for Headline
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 StructuralPartialEq for Headline
Auto Trait Implementations§
impl Freeze for Headline
impl RefUnwindSafe for Headline
impl Send for Headline
impl Sync for Headline
impl Unpin for Headline
impl UnsafeUnpin for Headline
impl UnwindSafe for Headline
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