[][src]Function csv2svg::unoverlap

pub fn unoverlap(mut dots: Vec<i64>, margin: i64) -> Option<Vec<i64>>

build a new vec of dots with no dot less than margin from another one. When this can't be done, return None. The dots vec is assumed

  • to contain 2 or more elements
  • to be strictly increasing Extremities (first and last point) are guaranteed to be returned unchanged.