Searched refs:UnitStruct (Results 1 – 8 of 8) sorted by relevance
/third_party/rust/crates/serde/test_suite/tests/ |
D | test_de_error.rs | 16 struct UnitStruct; struct 1328 &[Token::UnitStruct { name: "Anything" }], in test_btreeset_from_unit_struct() 1344 &[Token::UnitStruct { name: "Anything" }], in test_hashset_from_unit_struct() 1360 &[Token::UnitStruct { name: "Anything" }], in test_vec_from_unit_struct() 1376 &[Token::UnitStruct { name: "Anything" }], in test_zero_array_from_unit_struct() 1392 &[Token::UnitStruct { name: "Anything" }], in test_btreemap_from_unit_struct() 1408 &[Token::UnitStruct { name: "Anything" }], in test_hashmap_from_unit_struct() 1439 assert_de_tokens_error::<UnitStruct>( in test_unit_struct_from_seq()
|
D | test_ser.rs | 34 struct UnitStruct; struct 317 assert_ser_tokens(&UnitStruct, &[Token::UnitStruct { name: "UnitStruct" }]); in test_unit_struct()
|
D | test_de.rs | 44 struct UnitStruct; struct 880 test(UnitStruct, &[Token::Unit]); in test_unit_struct() 881 test(UnitStruct, &[Token::UnitStruct { name: "UnitStruct" }]); in test_unit_struct()
|
D | test_macros.rs | 117 assert_tokens(&NamedUnit, &[Token::UnitStruct { name: "NamedUnit" }]); in test_named_unit() 570 Token::UnitStruct { in test_default_ty_param()
|
/third_party/rust/crates/serde/serde_test/src/ |
D | de.rs | 154 Token::Unit | Token::UnitStruct { .. } => visitor.visit_unit(), in deserialize_any() 290 Token::UnitStruct { .. } => { in deserialize_unit_struct() 291 assert_next_token!(self, Token::UnitStruct { name: name }); in deserialize_unit_struct() 320 Token::Unit | Token::UnitStruct { .. } => { in deserialize_tuple() 354 Token::UnitStruct { .. } => { in deserialize_tuple_struct() 355 assert_next_token!(self, Token::UnitStruct { name: name }); in deserialize_tuple_struct()
|
D | token.rs | 199 UnitStruct { name: &'static str }, enumerator
|
D | ser.rs | 174 assert_next_token!(self, UnitStruct { name }); in serialize_unit_struct()
|
/third_party/rust/crates/serde/serde/src/private/ |
D | ser.rs | 56 UnitStruct, enumerator 75 Unsupported::UnitStruct => formatter.write_str("unit struct"), in fmt() 452 UnitStruct(&'static str), enumerator 494 Content::UnitStruct(n) => serializer.serialize_unit_struct(n), in serialize() 650 Ok(Content::UnitStruct(name)) in serialize_unit_struct() 1103 Err(Self::bad_type(Unsupported::UnitStruct)) in serialize_unit_struct()
|