Skip to main content

eval_source

Function eval_source 

Source
pub fn eval_source(source: &str) -> Result<String, String>
Expand description

Runs Rust source code and returns the final result as a display string.

Useful for REPL-style evaluation where the result should be shown.