pub struct FixedByteBuffer<const N: usize> { /* private fields */ }Expand description
Fixed-size byte buffer backed by a [u8; N] stack array.
Implements ByteBuffer so it can be passed wherever a byte buffer is expected.
Unlike StaticByteBuffer, no heap allocation occurs.
Implementations§
Trait Implementations§
Source§impl<const N: usize> ByteBuffer for FixedByteBuffer<N>
impl<const N: usize> ByteBuffer for FixedByteBuffer<N>
Source§impl<const N: usize> Clone for FixedByteBuffer<N>
impl<const N: usize> Clone for FixedByteBuffer<N>
Source§fn clone(&self) -> FixedByteBuffer<N>
fn clone(&self) -> FixedByteBuffer<N>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<const N: usize> Copy for FixedByteBuffer<N>
Source§impl<const N: usize> Debug for FixedByteBuffer<N>
impl<const N: usize> Debug for FixedByteBuffer<N>
Source§impl<const N: usize> Default for FixedByteBuffer<N>
impl<const N: usize> Default for FixedByteBuffer<N>
Source§impl<const N: usize> Display for FixedByteBuffer<N>
impl<const N: usize> Display for FixedByteBuffer<N>
impl<const N: usize> Eq for FixedByteBuffer<N>
Source§impl<const N: usize> Hash for FixedByteBuffer<N>
impl<const N: usize> Hash for FixedByteBuffer<N>
Source§impl<const N: usize> PartialEq for FixedByteBuffer<N>
impl<const N: usize> PartialEq for FixedByteBuffer<N>
Auto Trait Implementations§
impl<const N: usize> Freeze for FixedByteBuffer<N>
impl<const N: usize> RefUnwindSafe for FixedByteBuffer<N>
impl<const N: usize> Send for FixedByteBuffer<N>
impl<const N: usize> Sync for FixedByteBuffer<N>
impl<const N: usize> Unpin for FixedByteBuffer<N>
impl<const N: usize> UnsafeUnpin for FixedByteBuffer<N>
impl<const N: usize> UnwindSafe for FixedByteBuffer<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