pub trait ReusableBuffer: GrowBufferMut + ShrinkBuffer { }
Expand description
A byte buffer that can be serialized into multiple times.
ReusableBuffer
is a shorthand for GrowBufferMut + ShrinkBuffer
. A
ReusableBuffer
can be serialized into multiple times - the
ShrinkBuffer
implementation allows the buffer’s capacity to be reclaimed
for a new serialization pass.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.