pub struct Obs {
pub lt: bool,
pub eq: bool,
pub gt: bool,
pub un: bool,
pub unvalued: bool,
pub max_neg: Option<i128>,
pub min_pos: Option<i128>,
pub unfloat: bool,
pub f_max_neg: Option<f64>,
pub f_min_pos: Option<f64>,
}Expand description
What the tests observed at one comparison, summarised. Merging is commutative, associative and idempotent, so trace lines can be folded in any order.
Fields§
§lt: bool§eq: bool§gt: bool§un: bool§unvalued: boolSome observation did not carry integer values, so max_neg/min_pos are incomplete.
max_neg: Option<i128>Largest observed D < 0.
min_pos: Option<i128>Smallest observed D > 0.
unfloat: boolSome observation did not carry float values, so the two fields below are incomplete.
f_max_neg: Option<f64>Largest observed negative and smallest observed positive float difference.
f_min_pos: Option<f64>Implementations§
Source§impl Obs
impl Obs
Sourcepub fn rels_mask(&self) -> u8
pub fn rels_mask(&self) -> u8
Observed relations packed as a 4-bit mask (lt=1, eq=2, gt=4, un=8).
pub fn reached(&self) -> bool
pub fn valued(&self) -> bool
pub fn merge(&mut self, other: &Obs)
Sourcepub fn of_d(d: i128) -> Obs
pub fn of_d(d: i128) -> Obs
Summary of a single observation of integer operands with difference d.
Trait Implementations§
impl Copy for Obs
impl StructuralPartialEq for Obs
Auto Trait Implementations§
impl Forget for Obs
impl Freeze for Obs
impl Move for Obs
impl RefUnwindSafe for Obs
impl Send for Obs
impl Sync for Obs
impl Unpin for Obs
impl UnsafeUnpin for Obs
impl UnwindSafe for Obs
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