pub struct PolarityDrift {
pub token: String,
pub in_source: usize,
pub in_hypothesis: usize,
}Expand description
A single polarity token whose count differs between source and hypothesis.
Fields§
§token: StringThe polarity token (e.g. "not", "never").
in_source: usizeHow many times it appears in the source (context + template literals).
in_hypothesis: usizeHow many times it appears in the hypothesis (rendered output).
Trait Implementations§
Source§impl Clone for PolarityDrift
impl Clone for PolarityDrift
Source§fn clone(&self) -> PolarityDrift
fn clone(&self) -> PolarityDrift
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 PolarityDrift
impl Debug for PolarityDrift
Source§impl PartialEq for PolarityDrift
impl PartialEq for PolarityDrift
Source§fn eq(&self, other: &PolarityDrift) -> bool
fn eq(&self, other: &PolarityDrift) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PolarityDrift
Auto Trait Implementations§
impl Freeze for PolarityDrift
impl RefUnwindSafe for PolarityDrift
impl Send for PolarityDrift
impl Sync for PolarityDrift
impl Unpin for PolarityDrift
impl UnsafeUnpin for PolarityDrift
impl UnwindSafe for PolarityDrift
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