Function simics::api::simulator::python::call_python_function

source ·
pub fn call_python_function<S, I, T>(function: S, args: I) -> Result<AttrValue>
where S: AsRef<str>, I: IntoIterator<Item = T>, T: TryInto<AttrValue>,
Expand description

Call a python function with a set of arguments. The arguments must be convertible to AttrValue.

§Examples

We can run python code like so:

let res = call_python_function("print", ["a", "b", "c"])?;