from_slice_borrowed

Function from_slice_borrowed 

Source
pub fn from_slice_borrowed<'input, T>(
    input: &'input [u8],
) -> Result<T, DeserializeError<XmlError>>
where T: Facet<'input>,
Expand description

Deserialize a value from XML bytes, allowing borrowing from the input.

Use this when the deserialized type can borrow from the input bytes (e.g., contains &'a str fields). The input must outlive the result.

For most use cases, prefer from_slice which produces owned types.