1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
use byteview::ByteView; #[derive(Debug, Clone)] pub struct Unit; impl From<ByteView> for Unit { fn from(_: ByteView) -> Self { Self } } impl From<Unit> for ByteView { fn from(_: Unit) -> Self { Self::new(&[]) } }