use musli::{Encode, Decode}; #[derive(Encode, Decode)] pub struct Container<'a> { #[musli(with = "bytes")] pub data: &'a [u8], } mod bytes { use musli::{Decoder, Encoder}; pub(crate) fn encode(_this: &[u8], _cx: &E::Cx, _encoder: E) -> Result<(), E::Error> where E: Encoder, { todo!() } pub(crate) fn decode<'de, D>(_cx: &D::Cx, _decoder: D) -> Result, D::Error> where D: Decoder<'de>, { todo!() } } fn main() { }