macro_rules! python_wrap_with_gil {
{ $(#[$meta:meta])* $fn_name_source:path as $vis:vis $fn_name_target:ident($($arg:ident: $arg_type:ty),*) } => { ... };
{ $(#[$meta:meta])* $fn_name_source:path as $vis:vis $fn_name_target:ident($($arg:ident: $arg_type:ty),*) -> $(::pyo3::Py)?Result<Vec<$value:ty>> } => { ... };
{ $(#[$meta:meta])* $fn_name_source:path as $vis:vis $fn_name_target:ident($($arg:ident: $arg_type:ty),*) -> $(::pyo3::Py)?Result<$value:ty> } => { ... };
{ $($macro_tail:tt)* } => { ... };
[ $($macro_tail:tt)* ] => { ... };
}Expand description
Wrapper for inner Python bindings (with py: pyo3::Python as the first argument)
into a Rust function that can be called without the py argument while
returning values wrapper around pyo3::Py.