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.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§


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


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