pub fn dep_encode_to_vec_or_panic<T>(obj: &T) -> Vec<u8> ⓘwhere T: NestedEncode,
Calls nested encode and panics if an encoding error occurs. Do not use in smart contracts!