macro_rules! impl_tuple_serializer {
($T0:ident $(, $T:ident)+ $(,)?) => { ... };
}Expand description
Macro to implement Serializer for tuples of various sizes. Fory supports tuples up to 22 elements, longer tuples are not allowed.
This handles two serialization modes:
- Non-compatible mode: Write elements one by one without collection headers and type metadata
- Compatible mode: Use full collection protocol with headers and type info (always heterogeneous)