Struct stack_dst::buffers::ConstArrayBuf
source · pub struct ConstArrayBuf<T, const N: usize> { /* private fields */ }
Expand description
A buffer backing onto an array (used to provide default) - using constant generics
Trait Implementations§
source§impl<T, const N: usize> DataBuf for ArrayBuf<T, N>where
T: Pod,
impl<T, const N: usize> DataBuf for ArrayBuf<T, N>where T: Pod,
source§fn as_ref(&self) -> &[MaybeUninit<Self::Inner>]
fn as_ref(&self) -> &[MaybeUninit<Self::Inner>]
Get the buffer slice as an immutable borrow
source§fn as_mut(&mut self) -> &mut [MaybeUninit<Self::Inner>]
fn as_mut(&mut self) -> &mut [MaybeUninit<Self::Inner>]
Get the buffer slice as a mutable borrow
source§fn round_to_words(bytes: usize) -> usize
fn round_to_words(bytes: usize) -> usize
Convert a byte count to a word count (rounding up)
Auto Trait Implementations§
impl<T, const N: usize> RefUnwindSafe for ArrayBuf<T, N>where T: RefUnwindSafe,
impl<T, const N: usize> Send for ArrayBuf<T, N>where T: Send,
impl<T, const N: usize> Sync for ArrayBuf<T, N>where T: Sync,
impl<T, const N: usize> Unpin for ArrayBuf<T, N>where T: Unpin,
impl<T, const N: usize> UnwindSafe for ArrayBuf<T, N>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