Trait string_wrapper::Buffer [] [src]

pub unsafe trait Buffer {
    fn as_ref(&self) -> &[u8];
    fn as_mut(&mut self) -> &mut [u8];
}

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.

Required Methods

Get the backing buffer as a slice.

Get the backing buffer as a mutable slice.

Implementors