Home
last modified time | relevance | path

Searched refs:UnitStruct (Results 1 – 8 of 8) sorted by relevance

/third_party/rust/crates/serde/test_suite/tests/
Dtest_de_error.rs16 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()
Dtest_ser.rs34 struct UnitStruct; struct
317 assert_ser_tokens(&UnitStruct, &[Token::UnitStruct { name: "UnitStruct" }]); in test_unit_struct()
Dtest_de.rs44 struct UnitStruct; struct
880 test(UnitStruct, &[Token::Unit]); in test_unit_struct()
881 test(UnitStruct, &[Token::UnitStruct { name: "UnitStruct" }]); in test_unit_struct()
Dtest_macros.rs117 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/
Dde.rs154 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()
Dtoken.rs199 UnitStruct { name: &'static str }, enumerator
Dser.rs174 assert_next_token!(self, UnitStruct { name }); in serialize_unit_struct()
/third_party/rust/crates/serde/serde/src/private/
Dser.rs56 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()