Trait packet::ContiguousBufferImpl
source · pub trait ContiguousBufferImpl: AsRef<[u8]> { }
Expand description
A helper trait to implement FragmentedBuffer
and ContiguousBuffer
for any type that is AsRef<[u8]>
.
Implementers of ContiguousBufferImpl
will receive a blanket implementation
of FragmentedBuffer
and ContiguousBuffer
, where the
FragmentedBuffer
implementation is optimized for contiguous buffers.