Lines Matching refs:visitor
138 fn tuple_variant<V>(self, _len: usize, visitor: V) -> Result<V::Value, Self::Error> in tuple_variant()
142 visitor.visit_seq(self.as_vector().iter()) in tuple_variant()
150 visitor: V, in struct_variant()
156 visitor.visit_map(MapAccessor { in struct_variant()
169 fn deserialize_any<V>(self, visitor: V) -> Result<V::Value, Self::Error> in deserialize_any()
176 (Bool, _) => visitor.visit_bool(self.as_bool()), in deserialize_any()
177 (UInt, W8) => visitor.visit_u8(self.as_u8()), in deserialize_any()
178 (UInt, W16) => visitor.visit_u16(self.as_u16()), in deserialize_any()
179 (UInt, W32) => visitor.visit_u32(self.as_u32()), in deserialize_any()
180 (UInt, W64) => visitor.visit_u64(self.as_u64()), in deserialize_any()
181 (Int, W8) => visitor.visit_i8(self.as_i8()), in deserialize_any()
182 (Int, W16) => visitor.visit_i16(self.as_i16()), in deserialize_any()
183 (Int, W32) => visitor.visit_i32(self.as_i32()), in deserialize_any()
184 (Int, W64) => visitor.visit_i64(self.as_i64()), in deserialize_any()
185 (Float, W32) => visitor.visit_f32(self.as_f32()), in deserialize_any()
186 (Float, W64) => visitor.visit_f64(self.as_f64()), in deserialize_any()
188 (Null, _) => visitor.visit_unit(), in deserialize_any()
189 (String, _) | (Key, _) => visitor.visit_borrowed_str(self.as_str()), in deserialize_any()
190 (Blob, _) => visitor.visit_borrowed_bytes(self.get_blob()?.0), in deserialize_any()
193 visitor.visit_map(MapAccessor { in deserialize_any()
198 (ty, _) if ty.is_vector() => visitor.visit_seq(self.as_vector().iter()), in deserialize_any()
208 fn deserialize_char<V>(self, visitor: V) -> Result<V::Value, Self::Error> in deserialize_char()
212 visitor.visit_char(self.as_u8() as char) in deserialize_char()
215 fn deserialize_byte_buf<V>(self, visitor: V) -> Result<V::Value, Self::Error> in deserialize_byte_buf()
219 visitor.visit_byte_buf(self.get_blob()?.0.to_vec()) in deserialize_byte_buf()
222 fn deserialize_option<V>(self, visitor: V) -> Result<V::Value, Self::Error> in deserialize_option()
227 visitor.visit_none() in deserialize_option()
229 visitor.visit_some(self) in deserialize_option()
236 visitor: V, in deserialize_newtype_struct()
241 visitor.visit_newtype_struct(self) in deserialize_newtype_struct()
248 visitor: V, in deserialize_enum()
269 visitor.visit_enum(EnumReader { variant, value }) in deserialize_enum()