pub trait Runner<T>: Execute<T> { }Expand description
A language runtime that executes program text and emits its result as text.
The program defines its language and version, input grammar and encoding, how definitions are exposed to code, and how results are represented. Executing code can have external side effects; the pattern does not imply sandboxing, determinism, or rollback after failure.
§Command-line contract
PROGRAM [OPTIONS] [INPUT-FILE]
The program file defaults to - (stdin); the execution result goes to
stdout. RunnerOptions::define supplies runtime variables through the
repeatable --define=VAR=VAL option. No standard input/output-format
options or output-file operand are defined for this pattern.
T is the implementation’s result representation. This trait identifies the
language-runtime role, not generic process launching. See crate::programs
for links to concrete execution behavior and the runner specification.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".