pub fn serialize<S, T, const N: usize>(
data: &[T; N],
ser: S,
) -> Result<S::Ok, S::Error>where
S: Serializer,
T: Serialize,
Expand description
Serialize const generic or arbitrarily-large arrays
For any array up to length usize::MAX
, this function will allow Serde to properly serialize
it, provided of course that the type T
is itself serializable.
This implementation is adapted from the Serde documentataion