mirror of
https://github.com/serde-rs/serde.git
synced 2025-10-02 15:25:38 +00:00
Update the list of deserializable types
This commit is contained in:
parent
37f8ea234f
commit
03462b6e39
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user