Skip to main content

scope_if

Function scope_if 

Source
pub fn scope_if<R>(interrupt: Option<&Interrupt>, f: impl FnOnce() -> R) -> R
Expand description

scope when interrupt is Some, otherwise run f under whatever is already active.