capability_skeleton_validation/
skeleton_validation_report.rs1crate::ix!();
3
4#[derive(Debug, Clone, PartialEq)] pub struct SkeletonValidationReport {
7 flags: Vec<DeviationFlag>,
8}
9
10impl SkeletonValidationReport {
11 pub fn new() -> Self {
12 Self { flags: vec![] }
13 }
14
15 pub fn is_clean(&self) -> bool {
17 self.flags.is_empty()
18 }
19
20 pub fn push(&mut self, flag: DeviationFlag) {
22 self.flags.push(flag);
23 }
24
25 pub fn append(&mut self, other: &mut Vec<DeviationFlag>) {
27 self.flags.append(other);
28 }
29
30 pub fn flags(&self) -> &[DeviationFlag] {
32 &self.flags
33 }
34}