Module rune_modules::capture_io
source · Expand description
I/O module capable of capturing what’s been written to a buffer.
use rune::{Context, ContextError};
use rune_modules::capture_io::{self, CaptureIo};
let io = CaptureIo::new();
let mut c = rune_modules::with_config(false)?;
c.install(&capture_io::module(&io)?)?;
Structs
Functions
- Provide a bunch of
std
functions that can be used during tests to capture output.