[][src]Type Definition rustpython_vm::pyobject::PyObjectRef

type PyObjectRef = Rc<PyObject<dyn PyObjectPayload>>;

The PyObjectRef is one of the most used types. It is a reference to a python object. A single python object can have multiple references, and this reference counting is accounted for by this type. Use the .clone() method to create a new reference and increment the amount of references to the python object by 1.

Trait Implementations

impl BufferProtocol for PyObjectRef[src]

impl<'a, T: PyValue> From<&'a PyRef<T>> for &'a PyObjectRef[src]

impl<T: PyValue> From<PyRef<T>> for PyObjectRef[src]

impl IntoPyObject for PyObjectRef[src]

impl<'_> IntoPyObject for &'_ PyObjectRef[src]

impl ItemProtocol for PyObjectRef[src]

impl TryFromObject for PyObjectRef[src]

impl<T> TryIntoRef<T> for PyObjectRef where
    T: PyValue
[src]

impl TypeProtocol for PyObjectRef[src]