Skip to main content

py_eval

Macro py_eval 

Source
macro_rules! py_eval {
    ($code:expr) => { ... };
}
Expand description

Macro to evaluate Python expression with type inference Usage: let result: i32 = py_eval!(“1 + 1”);