pub struct ExploredMap { /* private fields */ }Expand description
Cross-process coverage map, OR’d by all timelines.
Lives in MAP_SHARED memory so all forked timelines contribute.
A bit set to 1 means “this assertion path has been explored.”
Implementations§
Source§impl ExploredMap
impl ExploredMap
Sourcepub unsafe fn new(ptr: *mut u8) -> Self
pub unsafe fn new(ptr: *mut u8) -> Self
Wrap a shared-memory pointer as a explored map.
§Safety
ptr must point to at least COVERAGE_MAP_SIZE bytes of valid,
writable shared memory.
Sourcepub fn merge_from(&self, other: &CoverageBitmap)
pub fn merge_from(&self, other: &CoverageBitmap)
Merge a timeline’s coverage bitmap into this explored map (bitwise OR).
Sourcepub fn count_bits_set(&self) -> u32
pub fn count_bits_set(&self) -> u32
Count the number of set bits in the explored map (population count).
Returns the total number of unique assertion paths explored across all timelines.
Sourcepub fn has_new_bits(&self, other: &CoverageBitmap) -> bool
pub fn has_new_bits(&self, other: &CoverageBitmap) -> bool
Check if a timeline’s bitmap contains any bits not yet in the explored map.
Auto Trait Implementations§
impl Freeze for ExploredMap
impl RefUnwindSafe for ExploredMap
impl !Send for ExploredMap
impl !Sync for ExploredMap
impl Unpin for ExploredMap
impl UnsafeUnpin for ExploredMap
impl UnwindSafe for ExploredMap
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more