[−][src]Function irq::scope
pub fn scope<'env, I, F, R>(f: F) -> R where
I: Interrupt,
F: FnOnce(&Scope<'env, I>) -> R,
Creates a scope in which interrupt handlers using stack-local data can be registered.
When this function returns, all handlers will be deregistered again. Note that scope
calls
should not be nested, or all interrupt handlers will be deregistered as soon as the inner call
returns.