The new borsh::max_serialized_size helper function returns the length
of the longest possible encoding of given type. This may be used to
preallocate output buffers or calculate minimum size of a memory
regions needed to keep the values (e.g. in case of Solana accounts).
The new borsh::max_serialized_size helper function returns the length of the longest possible encoding of given type. This may be used to preallocate output buffers or calculate minimum size of a memory regions needed to keep the values (e.g. in case of Solana accounts).