pub struct PythonBridge { /* private fields */ }Implementations§
Source§impl PythonBridge
impl PythonBridge
pub fn new() -> Self
pub fn ensure_module(&mut self, name: &str) -> PyResult<()>
pub fn call( &self, module_name: &str, func_name: &str, arg: Value, ) -> PyResult<Value>
pub fn call_with_multiple_args( &self, module_name: &str, func_name: &str, args: Vec<Value>, ) -> PyResult<Value>
pub fn reset(&mut self)
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for PythonBridge
impl Freeze for PythonBridge
impl Send for PythonBridge
impl Sync for PythonBridge
impl Unpin for PythonBridge
impl UnsafeUnpin for PythonBridge
impl UnwindSafe for PythonBridge
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more