Skip to main content

P1

Struct P1 

Source
pub struct P1 {
    pub verdict: Verdict,
    pub replayed: usize,
    pub reproduced: usize,
    pub empty: usize,
    pub seen: usize,
    pub tests: usize,
    pub switches: usize,
    pub max_delta: f64,
    pub fold: bool,
    pub first: Vec<String>,
}

Fields§

§verdict: Verdict§replayed: usize

Checks replayed (fixed rule, learned policy), and those that reproduced their log.

§reproduced: usize§empty: usize

Of the replayed checks, those that apply no lesson (P0 empty): their decision and propensities are empty under any policy, so only the summary and the source their record names are tested there, and P1 is NOT TESTED when they are all it replayed.

§seen: usize

Replayed checks whose record names the summary its decision read (Outcome::seen); the others (older records) are replayed on every line before them.

§tests: usize

Of the replayed checks, those whose record logs the question-count test (outcome.rs xk): their draw and its propensities are replayed from the check’s seed.

§switches: usize

Checks under an evaluation switch (cap, learned cut): counted, not replayed.

§max_delta: f64

The largest |Δ| between a replayed and a logged propensity (p or pf).

§fold: bool

Folding the log check by check gives the summary that folding it whole gives.

§first: Vec<String>

Trait Implementations§

Source§

impl Clone for P1

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for P1

Source§

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

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

impl PartialEq for P1

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 Serialize for P1

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for P1

Auto Trait Implementations§

§

impl Freeze for P1

§

impl RefUnwindSafe for P1

§

impl Send for P1

§

impl Sync for P1

§

impl Unpin for P1

§

impl UnsafeUnpin for P1

§

impl UnwindSafe for P1

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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.