Searched refs:assert_next_token (Results 1 – 2 of 2) sorted by relevance
/third_party/rust/crates/serde/serde_test/src/ |
D | ser.rs | 34 macro_rules! assert_next_token { macro 36 assert_next_token!($ser, stringify!($actual), Token::$actual, true); 39 assert_next_token!( 56 assert_next_token!( 91 assert_next_token!(self, Bool(v)); in serialize_bool() 96 assert_next_token!(self, I8(v)); in serialize_i8() 101 assert_next_token!(self, I16(v)); in serialize_i16() 106 assert_next_token!(self, I32(v)); in serialize_i32() 111 assert_next_token!(self, I64(v)); in serialize_i64() 116 assert_next_token!(self, U8(v)); in serialize_u8() [all …]
|
D | de.rs | 15 macro_rules! assert_next_token { macro 97 assert_next_token!(self, end); in visit_seq() 115 assert_next_token!(self, end); in visit_map() 291 assert_next_token!(self, Token::UnitStruct { name: name }); in deserialize_unit_struct() 308 assert_next_token!(self, Token::NewtypeStruct { name: name }); in deserialize_newtype_struct() 355 assert_next_token!(self, Token::UnitStruct { name: name }); in deserialize_tuple_struct() 367 assert_next_token!(self, Token::TupleStruct { name: name, len: n }); in deserialize_tuple_struct() 385 assert_next_token!(self, Token::Struct { name: name, len: n }); in deserialize_struct() 644 assert_next_token!(self.de, Token::TupleVariantEnd); in next_value_seed() 656 assert_next_token!(self.de, Token::StructVariantEnd); in next_value_seed()
|