macro_rules! make_io {
    ($read:expr, $write:expr) => { ... };
}
Expand description

Quickly makes an Io struct

$read must implement stdio::Read. $write must implement stdio::Write.

Example

use cambridge_asm::make_io;

let io = make_io!(std::io::stdin(), std::io::sink());