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

Function bitmap_or

nodedb/src/engine/timeseries/bitmap_index.rs:235–244  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

233
234 #[test]
235 fn bitmap_or() {
236 let mut a = Bitmap::new(64);
237 a.set(1);
238 let mut b = Bitmap::new(64);
239 b.set(2);
240 let c = a.or(&b);
241 assert!(c.get(1));
242 assert!(c.get(2));
243 assert_eq!(c.count_ones(), 2);
244 }
245
246 #[test]
247 fn bitmap_iter_ones() {

Callers

nothing calls this directly

Calls 2

setMethod · 0.45
orMethod · 0.45

Tested by

no test coverage detected