type PyObjectRef =Rc<PyObject<dynPyObjectPayload>>;
ThePyObjectRef
is one of the most used types. It is a reference to apython object. A single python object can have multiple references, andthis reference counting is accounted for by this type. Use the.clone()
method to create a new reference and increment the amount of referencesto the python object by 1.
implBufferProtocol forPyObjectRef
[src]impl<'a, T: PyValue>From<&'aPyRef<T>> for &'aPyObjectRef
[src]impl<T: PyValue>From<PyRef<T>> forPyObjectRef
[src]implIntoPyObject forPyObjectRef
[src]fninto_pyobject(self, _vm: &VirtualMachine) ->PyResult
[src]impl<'_>IntoPyObject for &'_PyObjectRef
[src]fninto_pyobject(self, _vm: &VirtualMachine) ->PyResult
[src]implItemProtocol forPyObjectRef
[src]fnget_item<T: IntoPyObject>(&self, key: T, vm: &VirtualMachine) ->PyResult
[src]fnset_item<T: IntoPyObject>(
&self,
key: T,
value:PyObjectRef,
vm: &VirtualMachine
) ->PyResult
[src]fndel_item<T: IntoPyObject>(&self, key: T, vm: &VirtualMachine) ->PyResult
[src]implTryFromObject forPyObjectRef
[src]fntry_from_object(_vm: &VirtualMachine, obj:PyObjectRef) ->PyResult<Self>
[src]impl<T>TryIntoRef<T> forPyObjectRefwhere
T:PyValue,
[src]fntry_into_ref(self, vm: &VirtualMachine) ->PyResult<PyRef<T>>
[src]implTypeProtocol forPyObjectRef
[src]fnclass(&self) ->PyClassRef
[src]