Struct cortex_m::ctxt::Local
[−]
[src]
pub struct Local<T, Ctxt> where Ctxt: Context { /* fields omitted */ }
Data local to a context
Methods
impl<T, Ctxt> Local<T, Ctxt> where Ctxt: Context
[src]
const fn new(value: T) -> Self
Initializes context local data
fn borrow<'ctxt>(&'static self, _ctxt: &'ctxt Ctxt) -> &'ctxt T
Acquires a reference to the context local data
fn borrow_mut<'ctxt>(&'static self, _ctxt: &'ctxt mut Ctxt) -> &'ctxt mut T
Acquires a mutable reference to the context local data