Skip to main content

is_enabled

Function is_enabled 

Source
pub fn is_enabled() -> bool
Expand description

True while a coverage session is active. Read once per VM construction and once per executed instruction, so it is a relaxed atomic load — effectively free and branch-predicted “off” when no session is running.