/// References to the points that exist and do not satisfy the comparator
// comparator is a box closure, which is not allows in map_or
References to the points that exist and do not satisfy the comparator
comparator is a box closure, which is not allows in map_or
References to the points that exist and do not satisfy the comparator comparator is a box closure which is not allows in map_or
pub(crate) fn invalid_points(&self, comparator: &Box<dyn Fn(f64) -> bool>) -> Vec<&DataPoint> {
        self.points
            .iter()
            .filter(|p| p.val.map_or(false, |v| comparator(v)))
            .collect()
    }
pub ( crate ) fn invalid_points ( & self , comparator : & Box < dyn Fn ( f64 ) -> bool > ) -> Vec < & DataPoint > { self . points . iter ( ) . filter ( | p | p . val . map_or ( false , | v | comparator ( v ) ) ) . collect ( ) }
References to the points that exist and do not satisfy the comparator
comparator is a box closure, which is not allows in map_or
References to the points that exist and do not satisfy the comparator comparator is a box closure which is not allows in map_or
&self
comparator
&Box<dyn Fn(f64) -> bool>