Trait artichoke_backend::extn::prelude::Io[][src]

pub trait Io {
    type Error;
    fn print<T>(&mut self, message: T) -> Result<(), Self::Error>
    where
        T: AsRef<[u8]>
; fn puts<T>(&mut self, message: T) -> Result<(), Self::Error>
    where
        T: AsRef<[u8]>
, { ... } }
Expand description

Make I/O external to the interpreter.

Associated Types

Concrete error type for errors encountered when reading and writing.

Required methods

Writes the given bytes to the interpreter stdout stream.

Errors

If the output stream encounters an error, an error is returned.

Provided methods

Writes the given bytes to the interpreter stdout stream followed by a newline.

This default implementation uses two calls to Io::print.

Errors

If the output stream encounters an error, an error is returned.

Implementors