Skip to main content

Module array

Module array 

Source
Available on crate feature serde only.
Expand description

Optional fixed-length arrays using this module’s prefix and case policy.

Present strings decode directly into [u8; N] without an intermediate byte vector; input text may still need storage. None and Some([]) remain distinct in every format. Add #[serde(default)] for missing fields.

§Examples

See the crate example for optional array fields.

Functions§

deserialize
Deserializes an optional array of exactly N bytes.
serialize
Serializes an optional byte view, preserving Serde’s Option tags.