Function io_interner::io_op

source ·
pub fn io_op<R1: Read, R2: Read>(
    x: R1,
    y: R2,
    callback: impl FnMut(&[u8], &[u8]) -> bool
) -> Result<()>
Expand description

Pass to callback slices with lenght up to 512 contained in both readers until either one reach EOF and returns None or when callback returns Some,that case this function will return it.

Errors

See io::copy.