pub unsafe trait Buffer {
// Required methods
fn as_ref(&self) -> &[u8] ⓘ;
fn as_mut(&mut self) -> &mut [u8] ⓘ;
}
Expand description
Equivalent to AsMut<[u8]> + AsRef<[u8]>
with the additional constraint that
implementations must return the same slice from subsequent calls of as_mut
and/or as_ref
.