pub fn deserialize_from_slice_borrowed<T: DeserializeOwned>(
data: &[u8],
) -> Result<T>Expand description
Parse JSON directly to a type from an immutable slice
Uses SmallVec to avoid heap allocation for messages under 4KB. This is ideal for cases where you have a borrowed slice and can’t mutate it.