[][src]Trait cheats::code::Invokable

pub trait Invokable {
    fn invoke(
        &self,
        args: &str,
        stdout: Box<&mut dyn Write>,
        stderr: Box<&mut dyn Write>
    ); }

A trait for structs that are invokable/runnable.

Required methods

fn invoke(
    &self,
    args: &str,
    stdout: Box<&mut dyn Write>,
    stderr: Box<&mut dyn Write>
)

Invocation of a series of events.

args can be an empty string if nothing is given. You can use stdout and stderr to write output.

Loading content...

Implementors

Loading content...