pub trait ContiguousBuffer: FragmentedBuffer + AsRef<[u8]> { }
Expand description

A buffer that is contiguous in memory.

If the implementing type is a buffer which exposes a prefix and a suffix, the AsRef implementation provides access only to the body. If AsMut is also implemented, it must provide access to the same bytes as AsRef.

Implementations on Foreign Types§

source§

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

source§

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

Implementors§