Skip to main content

P4

Struct P4 

Source
pub struct P4 {
Show 15 fields pub verdict: Verdict, pub why: String, pub cases: usize, pub of: usize, pub runs: usize, pub checks: usize, pub seeds: (usize, usize), pub usd: f64, pub applying: usize, pub fit: String, pub labels: u32, pub baseline: Option<Arm>, pub p4a: Option<Part>, pub p4b: Option<Part>, pub p4c: Option<Part>,
}

Fields§

§verdict: Verdict§why: String§cases: usize

Cases with runs, of the cases the qrels name; runs and graded checks read.

§of: usize§runs: usize§checks: usize§seeds: (usize, usize)

Fewest and most runs (seeds) per case.

§usd: f64

What a check’s model call cost, on average: the same call under every policy.

§applying: usize

Of the checks, those that apply a lesson: P4a tests nothing without one, as every policy decides nothing there.

§fit: String

The store’s posterior P4b draws from (select/policy.rs Fit::key, empty for the prior) and the labels it read.

§labels: u32§baseline: Option<Arm>§p4a: Option<Part>

P4a, P4b and P4c (module doc); None until the evaluation is complete. verdict is theirs by the rules v2’s default rule: PASS when P4a and P4c pass and P4b passes or is NOT TESTED, FAIL when one of them fails, NOT TESTED otherwise.

§p4b: Option<Part>§p4c: Option<Part>

Trait Implementations§

Source§

impl Clone for P4

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 P4

Source§

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

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

impl PartialEq for P4

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 P4

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 P4

Auto Trait Implementations§

§

impl Freeze for P4

§

impl RefUnwindSafe for P4

§

impl Send for P4

§

impl Sync for P4

§

impl Unpin for P4

§

impl UnsafeUnpin for P4

§

impl UnwindSafe for P4

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.