Coverage Report

Created: 2025-11-28 06:44

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/rust/registry/src/index.crates.io-1949cf8c6b5b557f/roaring-0.11.2/src/bitmap/fmt.rs
Line
Count
Source
1
use core::fmt;
2
3
use crate::RoaringBitmap;
4
5
#[cfg(not(feature = "std"))]
6
use alloc::vec::Vec;
7
8
impl fmt::Debug for RoaringBitmap {
9
0
    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
10
0
        if self.len() < 16 {
11
0
            write!(f, "RoaringBitmap<{:?}>", self.iter().collect::<Vec<u32>>())
12
        } else {
13
0
            write!(
14
0
                f,
15
0
                "RoaringBitmap<{:?} values between {:?} and {:?} in {:?} containers>",
16
0
                self.len(),
17
0
                self.min().unwrap(),
18
0
                self.max().unwrap(),
19
0
                self.containers.len(),
20
            )
21
        }
22
0
    }
23
}