use musli::{Encode, Decode}; #[derive(Decode, Encode)] struct Struct { #[musli(with = self::array)] field: [u32; 4], } mod array { use musli::{Encoder, Decoder}; #[inline] fn encode(_this: &[T; N], _cx: &E::Cx, _encoder: E) -> Result where E: Encoder, { todo!() } #[inline] fn decode<'de, D, T, const N: usize>(_cx: &D::Cx, _decoder: D) -> Result<[T; N], D::Error> where D: Decoder<'de>, { todo!() } } fn main() { }