pub struct MetricSample {
pub value: f64,
pub role: MetricRole,
}Expand description
One finite numeric sample together with its explicit regression role.
§Examples
use ailloli_ui_bench::{MetricRole, MetricSample};
let sample = MetricSample { value: 2.5, role: MetricRole::Diagnostic };
assert_eq!(sample.value, 2.5);Fields§
§value: f64Finite numeric measurement in the metric’s declared unit.
role: MetricRoleComparison and minimum-sample policy for this measurement.
Trait Implementations§
Source§impl Clone for MetricSample
impl Clone for MetricSample
Source§fn clone(&self) -> MetricSample
fn clone(&self) -> MetricSample
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MetricSample
impl Debug for MetricSample
Source§impl PartialEq for MetricSample
impl PartialEq for MetricSample
impl Copy for MetricSample
impl StructuralPartialEq for MetricSample
Auto Trait Implementations§
impl Freeze for MetricSample
impl RefUnwindSafe for MetricSample
impl Send for MetricSample
impl Sync for MetricSample
impl Unpin for MetricSample
impl UnwindSafe for MetricSample
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