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