MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / fold_numeric

Function fold_numeric

nodedb-array/src/tile/mbr.rs:172–175  ·  view source on GitHub ↗
(min: &mut Option<f64>, max: &mut Option<f64>, v: f64)

Source from the content-addressed store, hash-verified

170}
171
172fn fold_numeric(min: &mut Option<f64>, max: &mut Option<f64>, v: f64) {
173 *min = Some(min.map_or(v, |m| m.min(v)));
174 *max = Some(max.map_or(v, |m| m.max(v)));
175}
176
177fn coord_to_bound(c: &Option<CoordValue>) -> DomainBound {
178 match c {

Callers 1

foldMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected