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

Function le_bound

nodedb-array/src/segment/mbr_index/predicate.rs:20–23  ·  view source on GitHub ↗
(a: &DomainBound, b: &DomainBound)

Source from the content-addressed store, hash-verified

18}
19
20fn le_bound(a: &DomainBound, b: &DomainBound) -> bool {
21 a.partial_cmp(b)
22 .is_some_and(|o| o != std::cmp::Ordering::Greater)
23}
24
25/// Per-dim closed-interval predicate the caller supplies to query the
26/// tree. `None` on either side means "unbounded".

Callers

nothing calls this directly

Calls 1

partial_cmpMethod · 0.45

Tested by

no test coverage detected