pub struct PyGlue { /* private fields */ }Expand description
A Python module from source, compiled on first use and kept for the process.
Implementations§
Source§impl PyGlue
impl PyGlue
pub const fn new( source: &'static str, file: &'static str, name: &'static str, ) -> Self
Sourcepub fn call(
&self,
syn: &Synopsis,
name: &str,
call: LibCall,
) -> Result<Value, LibFailure>
pub fn call( &self, syn: &Synopsis, name: &str, call: LibCall, ) -> Result<Value, LibFailure>
Run the glue’s _call(name, args, kwargs) with the call’s
values: the input in the synopsis’ slot (the first positional
unless $_ placed it among the written operands), the
operands in order, the options by their long name. A Python
exception is a failed call carrying its text.
Auto Trait Implementations§
impl !Freeze for PyGlue
impl !RefUnwindSafe for PyGlue
impl Forget for PyGlue
impl Send for PyGlue
impl Sync for PyGlue
impl Unpin for PyGlue
impl UnsafeUnpin for PyGlue
impl UnwindSafe for PyGlue
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