Function process_text

Source
pub fn process_text<S, F, R>(source: S, f: F) -> Result<R>
where S: LoadSource, F: FnOnce(&str) -> Result<R>,
Expand description

Process any text &str with a callback, annotating the error with the source’s origin name.