From 03462b6e39ce8e160ccf1b7ebed180867c387fb9 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Thu, 13 Apr 2017 17:48:39 -0700 Subject: [PATCH] Update the list of deserializable types --- serde/src/de/mod.rs | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/serde/src/de/mod.rs b/serde/src/de/mod.rs index ae819be9..35e00531 100644 --- a/serde/src/de/mod.rs +++ b/serde/src/de/mod.rs @@ -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\ //! - Vec\ //! - EnumSet\ (unstable) +//! - **Zero-copy types**: +//! - &str +//! - &[u8] +//! - **FFI types**: +//! - CString +//! - Box\ +//! - OsString //! - **Miscellaneous standard library types**: //! - Duration //! - Path //! - PathBuf +//! - Range\ //! - NonZero\ (unstable) //! - **Net types**: //! - IpAddr