Module base::custom_serde

source ·
Expand description

Library for custom implementations of serialize/deserialize.


  • Deserialize sequence of T into an Array of SIZE == Size of sequence. This function is a workaround to the serde limitation on array size (32) deserialization.
  • Serialize data T inside an Arc<Mutex<T>>. T must be serializable.
  • Serialize data T inside arrays as a seq instead of a tuple. T must be serializable. When deserializing, an array size validation is required to transform the slice to an array.