|| 苔藓翻译 Moss是一种动态编程语言。它的解释器内核是用Rust编写的。 从Rust调用Moss代码的示例: use moss :: object :: Object; fn main () { let i = moss :: Interpreter :: new (); i.rte. set ( "a" ,Object :: from ( vec! [ 1 , 2 , 3 , 4 ])); let v: Vec < i32> = i. eval_cast ( r#" a.map(|x| 2*x) "# ); println! ( "{:?}" ,v); }