Skip to main content

with_deserializer_from_slice_with_options

Function with_deserializer_from_slice_with_options 

Source
pub fn with_deserializer_from_slice_with_options<'de, R, F>(
    bytes: &'de [u8],
    options: Options,
    f: F,
) -> Result<R, Error>
where for<'e> F: FnOnce(Deserializer<'de, 'e>) -> Result<R, Error>,
Expand description

Create a streaming crate::Deserializer for a UTF-8 byte slice with configurable Options and run a closure against it.