Function io_interner::to_utf8
source · pub fn to_utf8<R: Read, F: FnMut(Option<&str>)>(
reader: R,
callback: F
) -> Result<()>
Expand description
Convert the contents of the reader
into valid UTF-8 and pass it to callback,passing in None
when some bytes are not.
Errors
See io_unary_op
.