Module capture_io

Module capture_io 

Source
Available on crate feature capture-io only.
Expand description

I/O module capable of capturing what’s been written to a buffer.

§Examples

use rune::Context;
use rune::modules::capture_io::{self, CaptureIo};

let io = CaptureIo::new();

let mut context = rune::Context::with_config(false)?;
context.install(capture_io::module(&io)?)?;

Structs§

CaptureIo
Type which captures output from rune scripts.

Functions§

module
I/O module capable of capturing what’s been written to a buffer.