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

Function bound_lt

nodedb-array/src/query/slice.rs:159–168  ·  view source on GitHub ↗
(a: &DomainBound, b: &DomainBound)

Source from the content-addressed store, hash-verified

157}
158
159fn bound_lt(a: &DomainBound, b: &DomainBound) -> bool {
160 match (a, b) {
161 (DomainBound::Int64(x), DomainBound::Int64(y)) => x < y,
162 (DomainBound::Float64(x), DomainBound::Float64(y)) => x < y,
163 (DomainBound::TimestampMs(x), DomainBound::TimestampMs(y)) => x < y,
164 (DomainBound::String(x), DomainBound::String(y)) => x < y,
165 // Type-mismatched bounds never satisfy a less-than relation.
166 _ => false,
167 }
168}
169
170fn coord_to_bound(c: &CoordValue) -> DomainBound {
171 match c {

Callers 2

tile_overlaps_sliceFunction · 0.85
cell_in_sliceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected