pub struct PairComparability {
pub valid: bool,
pub violations: Vec<String>,
}Expand description
Result of checking whether a baseline/patched pair is comparable.
Fields§
§valid: boolWhether the pair is valid for attribution.
violations: Vec<String>Reasons why the pair is incomparable, if any.
Implementations§
Source§impl PairComparability
impl PairComparability
Sourcepub fn check(
baseline_workload: &str,
patched_workload: &str,
baseline_checks: &[String],
patched_checks: &[String],
baseline_timeout_class: &str,
patched_timeout_class: &str,
baseline_backend: &str,
patched_backend: &str,
baseline_config_flags: &[String],
patched_config_flags: &[String],
) -> Self
pub fn check( baseline_workload: &str, patched_workload: &str, baseline_checks: &[String], patched_checks: &[String], baseline_timeout_class: &str, patched_timeout_class: &str, baseline_backend: &str, patched_backend: &str, baseline_config_flags: &[String], patched_config_flags: &[String], ) -> Self
Check pair comparability between baseline and patched trial contexts.
A paired comparison is valid only if baseline and patched runs share:
- same workload_id
- same ordered selected_checks
- same effective timeout class
- same execution backend family
- same config-flag projection
Trait Implementations§
Source§impl Clone for PairComparability
impl Clone for PairComparability
Source§fn clone(&self) -> PairComparability
fn clone(&self) -> PairComparability
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PairComparability
impl Debug for PairComparability
Source§impl<'de> Deserialize<'de> for PairComparability
impl<'de> Deserialize<'de> for PairComparability
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for PairComparability
impl RefUnwindSafe for PairComparability
impl Send for PairComparability
impl Sync for PairComparability
impl Unpin for PairComparability
impl UnsafeUnpin for PairComparability
impl UnwindSafe for PairComparability
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