Skip to main content

with_reader

Function with_reader 

Source
pub fn with_reader<X: BinaryXml, R, C>(
    xml: &X,
    location: Location<X::Id, X::Document, X::Generation>,
    operation: &Reader<'_>,
    visitor: impl for<'source> FnOnce(&mut Reader<'source>) -> Result<R, C>,
) -> BinaryResult<R, X, C>
Expand description

Visits one original decoded source with snapshot checks around the callback.