pub struct Claim {
pub item: String,
pub backend: String,
pub metric: String,
pub minus: Option<Operand>,
pub op: Op,
pub bound: f64,
}Expand description
One parsed soothfast:claim expression: a measured metric of an item,
or the difference of two items’ metrics, compared against a fixed bound.
Fields§
§item: StringFully qualified item path (demo::lcg_checksum).
backend: StringMetric backend the value comes from (perfcnt, walltime, alloc).
metric: StringMetric name within the backend (instructions, p99, allocs).
minus: Option<Operand>Metric subtracted from the one above (A.b.m - B.b.m < 2us).
op: OpHow the measured value is compared to bound.
bound: f64Claimed limit, in the metric’s raw unit (durations normalized to ns).
Trait Implementations§
Auto Trait Implementations§
impl Forget for Claim
impl Freeze for Claim
impl Move for Claim
impl RefUnwindSafe for Claim
impl Send for Claimwhere
RawVecInner: Send,
impl Sync for Claimwhere
RawVecInner: Sync,
impl Unpin for Claim
impl UnsafeUnpin for Claim
impl UnwindSafe for Claimwhere
RawVecInner: UnwindSafe,
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