pub struct Stack<const N: usize>(/* private fields */);Expand description
Correctly aligned stack allocation helper.
It ensures allocation of a task-specific stack region correctly aligned at 8 bytes. Modeled after rp2040-hal implementation.
Implementations§
Trait Implementations§
Source§impl<const N: usize> StackAllocation for &mut Stack<N>
impl<const N: usize> StackAllocation for &mut Stack<N>
fn as_mut_slice(&mut self) -> &mut [u8]
Auto Trait Implementations§
impl<const N: usize> Freeze for Stack<N>
impl<const N: usize> RefUnwindSafe for Stack<N>
impl<const N: usize> Send for Stack<N>
impl<const N: usize> Sync for Stack<N>
impl<const N: usize> Unpin for Stack<N>
impl<const N: usize> UnwindSafe for Stack<N>
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