Lines Matching +full:test +full:- +full:serde
4 //! [`Serialize`]: serde::ser::Serialize
5 //! [`Deserialize`]: serde::de::Deserialize
11 //! test that a value serializes to a particular sequence of method calls, an
12 //! [`assert_de_tokens`] function to test that a value can be deserialized from
14 //! test both directions. There are also functions to test expected failure
17 //! [`Serializer`]: serde::ser::Serializer
19 //! Here is an example from the [`linked-hash-map`] crate.
21 //! [`linked-hash-map`]: https://github.com/contain-rs/linked-hash-map
32 //! # use serde::ser::{Serialize, Serializer, SerializeMap};
33 //! # use serde::de::{Deserialize, Deserializer, Visitor, MapAccess};
40 //! # fn new() -> Self {
54 //! # fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
75 //! # fn expecting(&self, _: &mut fmt::Formatter) -> fmt::Result {
79 //! # fn visit_map<M>(self, mut access: M) -> Result<Self::Value, M::Error>
96 //! # fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>
104 //! #[test]
115 //! #[test]
144 #![cfg_attr(feature = "cargo-clippy", allow(renamed_and_removed_lints))]
146 #![cfg_attr(feature = "cargo-clippy", allow(float_cmp, needless_doctest_main))]
149 feature = "cargo-clippy",
152 doc_link_with_quotes, // https://github.com/rust-lang/rust-clippy/issues/8961
161 type_repetition_in_bounds, // https://github.com/rust-lang/rust-clippy/issues/8772
168 extern crate serde;