Lines Matching refs:DataEnum
11 enum DataEnum { in test_simple_data_enum_roundtrip() enum
16 let a = DataEnum::A(42); in test_simple_data_enum_roundtrip()
25 let deserialized: DataEnum = in test_simple_data_enum_roundtrip()
87 enum DataEnum { enum
95 let data_enum_a = DataEnum::A(4); in test_data_enum()
96 let re_a: DataEnum = from_slice(&to_vec(&data_enum_a).unwrap()).unwrap(); in test_data_enum()
98 let data_enum_b = DataEnum::B(true, 42); in test_data_enum()
99 let re_b: DataEnum = from_slice(&to_vec(&data_enum_b).unwrap()).unwrap(); in test_data_enum()
101 let data_enum_c = DataEnum::C { in test_data_enum()
106 let re_c: DataEnum = from_slice(&to_vec(&data_enum_c).unwrap()).unwrap(); in test_data_enum()
115 to_vec_legacy(&DataEnum::A(42)).unwrap(), in test_serialize()
119 to_vec_legacy(&DataEnum::B(true, 9)).unwrap(), in test_serialize()