Skip to main content

run_named

Function run_named 

Source
pub fn run_named(
    source: &str,
    source_dir: Option<PathBuf>,
    file: Option<&str>,
) -> Result<(), String>
Expand description

Run with an optional source directory and the source file name (used to label diagnostics). Parse and runtime errors are returned as fully-rendered, colored, localized diagnostics (see diag).