simd_json::serde

Function from_refborrowed_value

source
pub fn from_refborrowed_value<'de, T>(
    value: &'de BorrowedValue<'de>,
) -> Result<T>
where T: Deserialize<'de>,
Expand description

Tries to convert a &BorrowedValue into a struct that implements serde’s Deserialize interface

§Errors

Will return Err if value fails to be deserialized