Expand description
By default, serde does not know how to parse fixed length arrays of sizes that aren’t common (I.E: 32) Here we provide a module that can be used to serialize arrays that relies on const generics.
Usage:
```rust,ignore` #[derive(Serialize)] struct Example { #[serde(with = “array”)] array: [u8; 55], }
Functions§
- deserialize
- Deserialize an array with an ArrayVisitor aware of
N
during deserialize. - serialize
- Serialize an array of size N using a const generic parameter to drive serialize_seq.