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.