pub struct Stack<const SIZE: usize>;
Expand description
Fixed SIZE
capacity on-stack memory.
Can contain at most SIZE
bytes.
Upon build()
real capacity calculated based on element_layout
.
This involves idiv
operation. You may want to consider StackN
for intermediate storage instead.
Trait Implementations§
source§impl<const SIZE: usize> MemBuilder for Stack<SIZE>
impl<const SIZE: usize> MemBuilder for Stack<SIZE>
impl<const SIZE: usize> Copy for Stack<SIZE>
Auto Trait Implementations§
impl<const SIZE: usize> Freeze for Stack<SIZE>
impl<const SIZE: usize> RefUnwindSafe for Stack<SIZE>
impl<const SIZE: usize> Send for Stack<SIZE>
impl<const SIZE: usize> Sync for Stack<SIZE>
impl<const SIZE: usize> Unpin for Stack<SIZE>
impl<const SIZE: usize> UnwindSafe for Stack<SIZE>
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