rune::modules

Module capture_io

Source
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§

  • Type which captures output from rune scripts.

Functions§

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