Trait vrp_core::algorithms::gsom::Storage [−][src]
pub trait Storage: Display + Send + Sync { type Item: Input; fn add(&mut self, input: Self::Item); fn drain<R>(&mut self, range: R) -> Vec<Self::Item>
where
R: RangeBounds<usize>; fn distance(&self, a: &[f64], b: &[f64]) -> f64; fn size(&self) -> usize; }
Expand description
Represents input data storage.
Associated Types
Required methods
Removes and returns all data from the storage.