Functions§
- py_
buildargs - Convert a vector of
Tto a Python List ofT. - py_exec
- Runs a closure that follows the signature
|py: RUMPython| -> R {}. Remember, the type of thepytoken needs to be explicitly added or there will be a type inference error from Rust about lifetimes when in fact the closure has no lifetime issues. See example below. - py_
exec_ module - Function for executing a python module’s function.
If you set the argument
func_nameto an empty string,py_execwill do nothing. Allegedly, the module executed upon import. - py_
extract_ any - Extract value returned from functions and modules via a
PyAnyobject. - py_
extract_ string_ vector - py_
list_ to_ tuple - py_load
- Load a python module from a given file path!
- py_
new_ args - Create empty Python List, which can be used for creating a collection of arguments to pass to script.
- py_
push_ arg - Push argument of type
Tinto instance of Python List. We can then use the list to pass arguments to Python function or method.