pub trait Context {
type Registers: Debug + Display;
// Required methods
fn registers(&self) -> &Self::Registers;
unsafe fn registers_mut(&mut self) -> &mut Self::Registers;
}
Required Associated Types§
Required Methods§
fn registers(&self) -> &Self::Registers
sourceunsafe fn registers_mut(&mut self) -> &mut Self::Registers
unsafe fn registers_mut(&mut self) -> &mut Self::Registers
Safety
Mutating the value of saved interrupt registers can cause undefined behavior.