Skip to main content

eval_str_from

Function eval_str_from 

Source
pub fn eval_str_from(src: &str, origin: &str) -> Result<Value, String>
Expand description

eval_str with the entry-point NAME node reports for it: [eval] for -e, [stdin] for source piped in. The two are observably different — __filename, module.id and a stack frame’s file all carry it.