1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
pub struct Bytes {} impl std::ops::Deref for Bytes { type Target = [u8]; fn deref(&self) -> &Self::Target { unimplemented!() } } impl From<Vec<u8>> for Bytes { fn from(_v: Vec<u8>) -> Self { unimplemented!() } }