1 2 3 4 5 6 7 8 9 10 11 12 13 14
use alloc::vec::Vec; /// An anomaly detection result. #[derive(Clone, Debug)] pub struct AnomalyDetectionResult { pub(crate) anomalies: Vec<usize>, } impl AnomalyDetectionResult { /// Returns the anomalies. pub fn anomalies(&self) -> &[usize] { &self.anomalies } }