1use std::borrow::BorrowMut; 2 3use crate::Buffer; 4 5impl BorrowMut<[u8]> for Buffer { 6 fn borrow_mut(&mut self) -> &mut [u8] { 7 self 8 } 9}