Struct anchor::ScratchOutput
source · pub struct ScratchOutput<const MAX_SIZE: usize = 64> { /* private fields */ }
Expand description
A scratch pad based OutputBuffer
.
Uses a statically sized inlined buffer. For serializing multiple messages in a row, the buffer can be reset if needed.
Implementations§
Trait Implementations§
source§impl<const MAX_SIZE: usize> OutputBuffer for ScratchOutput<MAX_SIZE>
impl<const MAX_SIZE: usize> OutputBuffer for ScratchOutput<MAX_SIZE>
Auto Trait Implementations§
impl<const MAX_SIZE: usize> Freeze for ScratchOutput<MAX_SIZE>
impl<const MAX_SIZE: usize> RefUnwindSafe for ScratchOutput<MAX_SIZE>
impl<const MAX_SIZE: usize> Send for ScratchOutput<MAX_SIZE>
impl<const MAX_SIZE: usize> Sync for ScratchOutput<MAX_SIZE>
impl<const MAX_SIZE: usize> Unpin for ScratchOutput<MAX_SIZE>
impl<const MAX_SIZE: usize> UnwindSafe for ScratchOutput<MAX_SIZE>
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