pub struct MeasuredJoin { /* private fields */ }Expand description
PP-3 / PP-22 / P-5 — a comparator lane that passed the join, and the ratios it produced.
§Why the fields are private
While ComparatorStatus::Measured was a struct variant with public fields,
any caller could write
ComparatorStatus::Measured { baseline: Box::new(band), ratios }and attach a baseline from another run, another band, or a lane that timed
out — the three things BandInput::join_status_in exists to refuse. The
refusals lived in a function nothing forced anyone to call. Wrapping the
payload in a type whose only constructor is pub(crate) and which is
reachable only from that function makes the refusals structural: outside
aprender-test-lib there is no expression that produces one.
Reading is unrestricted — Self::baseline and Self::ratios — because
a receipt renderer must be able to see what it is rendering.
Implementations§
Source§impl MeasuredJoin
impl MeasuredJoin
Sourcepub fn baseline(&self) -> &DerivedBand
pub fn baseline(&self) -> &DerivedBand
The comparator lane’s band.
Sourcepub fn ratios(&self) -> &BandRatios
pub fn ratios(&self) -> &BandRatios
P-5 — the ratios formed against that band.
Trait Implementations§
Source§impl Clone for MeasuredJoin
impl Clone for MeasuredJoin
Source§impl Debug for MeasuredJoin
impl Debug for MeasuredJoin
Source§impl<'de> Deserialize<'de> for MeasuredJoin
impl<'de> Deserialize<'de> for MeasuredJoin
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for MeasuredJoin
impl PartialEq for MeasuredJoin
Source§impl Serialize for MeasuredJoin
impl Serialize for MeasuredJoin
impl StructuralPartialEq for MeasuredJoin
Auto Trait Implementations§
impl Freeze for MeasuredJoin
impl RefUnwindSafe for MeasuredJoin
impl Send for MeasuredJoin
impl Sync for MeasuredJoin
impl Unpin for MeasuredJoin
impl UnsafeUnpin for MeasuredJoin
impl UnwindSafe for MeasuredJoin
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more