pub fn deserialize<'de, D, T, const N: usize>(
deserialize: D,
) -> Result<[T; N], D::Error>where
D: Deserializer<'de>,
T: Deserialize<'de>,
Expand description
Deserialize const generic or arbitrarily-large arrays
For any array up to length usize::MAX
, this function will allow Serde to properly deserialize
it, provided the type T
itself is deserializable.
This implementation is adapted from the Serde documentation.