pub struct FixedBuf<const N: usize> { /* private fields */ }Expand description
Stack-allocated, const-generic byte buffer for zero-allocation JSON output.
N is the maximum bytes; exceeding it panics.
Implementations§
Source§impl<const N: usize> FixedBuf<N>
impl<const N: usize> FixedBuf<N>
Trait Implementations§
Auto Trait Implementations§
impl<const N: usize> Freeze for FixedBuf<N>
impl<const N: usize> RefUnwindSafe for FixedBuf<N>
impl<const N: usize> Send for FixedBuf<N>
impl<const N: usize> Sync 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