Update the list of deserializable types

This commit is contained in:
David Tolnay 2017-04-13 17:48:39 -07:00
parent 37f8ea234f
commit 03462b6e39
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82

View File

@ -48,12 +48,12 @@
//! //!
//! This is a slightly different set of types than what is supported for //! This is a slightly different set of types than what is supported for
//! serialization. Some types can be serialized by Serde but not deserialized. //! serialization. Some types can be serialized by Serde but not deserialized.
//! One example is `&str`. //! One example is `OsStr`.
//! //!
//! - **Primitive types**: //! - **Primitive types**:
//! - bool //! - bool
//! - isize, i8, i16, i32, i64 //! - i8, i16, i32, i64, isize
//! - usize, u8, u16, u32, u64 //! - u8, u16, u32, u64, usize
//! - f32, f64 //! - f32, f64
//! - char //! - char
//! - **Compound types**: //! - **Compound types**:
@ -81,10 +81,18 @@
//! - VecDeque\<T\> //! - VecDeque\<T\>
//! - Vec\<T\> //! - Vec\<T\>
//! - EnumSet\<T\> (unstable) //! - EnumSet\<T\> (unstable)
//! - **Zero-copy types**:
//! - &str
//! - &[u8]
//! - **FFI types**:
//! - CString
//! - Box\<CStr\>
//! - OsString
//! - **Miscellaneous standard library types**: //! - **Miscellaneous standard library types**:
//! - Duration //! - Duration
//! - Path //! - Path
//! - PathBuf //! - PathBuf
//! - Range\<T\>
//! - NonZero\<T\> (unstable) //! - NonZero\<T\> (unstable)
//! - **Net types**: //! - **Net types**:
//! - IpAddr //! - IpAddr