Skip to main content

Trace

Struct Trace 

Source
pub struct Trace {
    pub cmp: BTreeMap<u32, BTreeMap<String, Obs>>,
    pub logic: BTreeMap<u32, BTreeMap<String, LogicObs>>,
    pub arith: BTreeMap<u32, BTreeMap<String, ArithObs>>,
    pub returns: BTreeMap<u32, BTreeMap<String, ReturnObs>>,
    pub lit_set: BTreeMap<u32, BTreeMap<String, LitSetObs>>,
    pub reach: BTreeMap<u32, BTreeSet<String>>,
    pub ranges_at_top: BTreeSet<u32>,
    pub bounds: BTreeMap<u32, TypeBounds>,
    pub cast_bounds: BTreeMap<(u32, u32), Option<(i128, i128)>>,
    pub malformed_lines: usize,
}

Fields§

§cmp: BTreeMap<u32, BTreeMap<String, Obs>>

site -> test -> observations

§logic: BTreeMap<u32, BTreeMap<String, LogicObs>>§arith: BTreeMap<u32, BTreeMap<String, ArithObs>>§returns: BTreeMap<u32, BTreeMap<String, ReturnObs>>§lit_set: BTreeMap<u32, BTreeMap<String, LitSetObs>>§reach: BTreeMap<u32, BTreeSet<String>>

site -> tests that executed the statement

§ranges_at_top: BTreeSet<u32>

Ranges a..b that some test ran with b at the largest value of its type.

§bounds: BTreeMap<u32, TypeBounds>§cast_bounds: BTreeMap<(u32, u32), Option<(i128, i128)>>

(site, slot) -> observed source type bounds for a cast/from operand inside |/^, or None when observed as non-primitive or polymorphically across distinct types.

§malformed_lines: usize

Implementations§

Source§

impl Trace

Source

pub fn differences(&self, other: &Trace) -> usize

How many records (what one test saw at one site) are not the same in two traces of the same tests. Tests that always do the same give none.

Source

pub fn parse(text: &str) -> Trace

Source

pub fn merged(&self, site: u32) -> Obs

Everything any test observed at a comparison site.

Trait Implementations§

Source§

impl Debug for Trace

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for Trace

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl PartialEq for Trace

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for Trace

Auto Trait Implementations§

§

impl Forget for Trace

§

impl Freeze for Trace

§

impl Move for Trace

§

impl RefUnwindSafe for Trace

§

impl Send for Trace

§

impl Sync for Trace

§

impl Unpin for Trace

§

impl UnsafeUnpin for Trace

§

impl UnwindSafe for Trace

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.