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

An input type.

Required methods

Adds an input to the storage.

Removes and returns all data from the storage.

Returns a distance between two input weights.

Returns size of the storage.

Implementors