Enum querent_synapse::cross::PythonRef
source · pub enum PythonRef {
PyObject(PyObject),
PyFunction(Py<PyFunction>),
PyExternalFunction(Py<PyFunction>),
}
Variants§
PyObject(PyObject)
PyFunction(Py<PyFunction>)
PyExternalFunction(Py<PyFunction>)
Special type to transfer functions through JavaScript In JS it’s an external object. It’s not the same as Function.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PythonRef
impl !RefUnwindSafe for PythonRef
impl Send for PythonRef
impl Sync for PythonRef
impl Unpin for PythonRef
impl UnwindSafe for PythonRef
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