MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / is_in_end_bound

Method is_in_end_bound

cranelift/bforest/src/map.rs:842–848  ·  view source on GitHub ↗
(&self, key: K)

Source from the content-addressed store, hash-verified

840 }
841
842 fn is_in_end_bound(&self, key: K) -> bool {
843 match self.end {
844 Bound::Included(k) => self.cursor.comp.cmp(k, key).is_ge(),
845 Bound::Excluded(k) => self.cursor.comp.cmp(k, key).is_gt(),
846 Bound::Unbounded => true,
847 }
848 }
849}
850
851#[cfg(test)]

Callers 1

is_in_boundsMethod · 0.80

Calls 1

cmpMethod · 0.45

Tested by

no test coverage detected