Skip to main content

with_context

Function with_context 

Source
pub fn with_context<T, F>(ctx: &str, offset: usize, f: F) -> SerialResult<T>
where F: FnOnce() -> Result<T, OleanError>,
Expand description

Wraps a deserialization call with context for better error messages.