Function rp6::avr::interrupt::without_interrupts   
source · pub fn without_interrupts<F, T>(f: F) -> Twhere
    F: FnOnce(&mut CriticalSection) -> T,Expand description
Executes a closure, disabling interrupts until its completion. Introduces a CriticalSection
that allows to access shared data structures via the guards provided in the mutex module.
Restores interrupts after the closure has completed execution.