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§

source

fn registers(&self) -> &Self::Registers

source

unsafe fn registers_mut(&mut self) -> &mut Self::Registers

Safety

Mutating the value of saved interrupt registers can cause undefined behavior.

Implementors§