Function io_interner::io_op[][src]

pub fn io_op<R1: Read, R2: Read, T>(
    x: R1,
    y: R2,
    callback: impl Fn(&[u8], &[u8]) -> Option<T>
) -> Result<Option<T>>

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.