forked from rust-embedded-community/serde-json-core
-
Notifications
You must be signed in to change notification settings - Fork 17
Open
Description
The docs appear to say:
Line 11 in 2ab22a6
//! - (De)serialization doesn't require memory allocations |
Lines 15 to 18 in 2ab22a6
//! - Supports deserialization of: | |
//! - `bool` | |
//! - Integers | |
//! - `str` (This is a zero copy operation.) (\*) |
However, looking at the API, DeserializedOwned
is required:
Lines 654 to 656 in 2ab22a6
pub fn from_slice<T>(v: &[u8]) -> Result<T> | |
where | |
T: de::DeserializeOwned, |
What's the right way to use the lib to do deserialisation with &str fields being a zero copy?
Thanks!
Metadata
Metadata
Assignees
Labels
No labels