[][src]Function solana_libra_prost_ext::test_helpers::assert_protobuf_encode_decode

pub fn assert_protobuf_encode_decode<P, T>(object: &T) where
    T: TryFrom<P> + Into<P> + Clone + Debug + Eq,
    T::Error: Debug,
    P: Message + Default

Assert that protobuf encoding and decoding roundtrips correctly.

This is meant to be used for prost::Message instances.