pub struct UtilBufWrapper<const N: usize> {
pub buffer: [u8; N],
pub total: usize,
}Expand description
A wrapper for a byte array buffer. The total field is the number of bytes used in the buffer. The buffer field is the byte array. The buffer field is split at the total field to get the used bytes.
Fields§
§buffer: [u8; N]§total: usizeImplementations§
Auto Trait Implementations§
impl<const N: usize> Freeze for UtilBufWrapper<N>
impl<const N: usize> RefUnwindSafe for UtilBufWrapper<N>
impl<const N: usize> Send for UtilBufWrapper<N>
impl<const N: usize> Sync for UtilBufWrapper<N>
impl<const N: usize> Unpin for UtilBufWrapper<N>
impl<const N: usize> UnwindSafe for UtilBufWrapper<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