pub struct FixedBuf<const N: usize> { /* private fields */ }Expand description
Implementations§
Trait Implementations§
Source§impl<const N: usize> Buf for FixedBuf<N>
impl<const N: usize> Buf for FixedBuf<N>
Source§fn as_mut_ptr(&mut self) -> *mut u8
fn as_mut_ptr(&mut self) -> *mut u8
Mutable raw pointer to the buffer start.
Source§fn resize(&mut self, new_len: u32, fill: u8)
fn resize(&mut self, new_len: u32, fill: u8)
Grow or shrink the buffer, filling new bytes with
fill.Source§fn extend_from_slice(&mut self, data: &[u8])
fn extend_from_slice(&mut self, data: &[u8])
Append bytes from a slice.
Source§fn alloc<U: Flat>(&mut self) -> Pos
fn alloc<U: Flat>(&mut self) -> Pos
Align + allocate space for one
U, return its position. Read moreSource§fn expose_provenance(&self)
fn expose_provenance(&self)
Expose provenance so
Near::get can recover it
via with_exposed_provenance.impl<const N: usize> Send for FixedBuf<N>
impl<const N: usize> Sync for FixedBuf<N>
Auto Trait Implementations§
impl<const N: usize> Freeze for FixedBuf<N>
impl<const N: usize> RefUnwindSafe for FixedBuf<N>
impl<const N: usize> Unpin for FixedBuf<N>
impl<const N: usize> UnsafeUnpin for FixedBuf<N>
impl<const N: usize> UnwindSafe for FixedBuf<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