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.

Implementations on Foreign Types§

source§

impl<'a> ContiguousBufferImpl for &'a mut [u8]

source§

impl<'a> ContiguousBufferImpl for &'a [u8]

Implementors§