pub struct HramCell<T>(/* private fields */)
where
T: CellValue;Expand description
Storage for a cell read and written under a CriticalSection.
Declare it with hram!; the accessors live on the handle that macro
generates, not on this type. An access wider than one byte is several ldh
instructions, and the token is the proof that no interrupt lands between them.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<T> !Freeze for HramCell<T>
impl<T> !RefUnwindSafe for HramCell<T>
impl<T> BankSafe for HramCell<T>
impl<T> Send for HramCell<T>where
T: Send,
impl<T> Unpin for HramCell<T>where
T: Unpin,
impl<T> UnsafeUnpin for HramCell<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for HramCell<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more