pub fn pack_with_versionstamp<T>(v: &T) -> Vec<u8> ⓘwhere
T: TuplePack,Expand description
Pack a value using the versionstamp offset encoding for API 520 and later.
If the tuple contains an incomplete versionstamp, the result has a four-byte
offset suffix. For keys under an earlier runtime API, use
pack_with_versionstamp_for_key. Tuple values with incomplete stamps require
API 520 or later; earlier APIs stamp at byte zero, overwriting the tuple’s type
code. Complete stamps are packed normally, without an offset suffix.
§Panics
Panics if there is multiple versionstamp present or if the encoded data size doesn’t fit in u32.