Module object

Source

Structs§

Py
PyAtomicRef
PyExact
PyLease
A borrow of a reference to a Python object. This avoids having clone the PyRef<T>/ PyObjectRef, which isn’t that cheap as that increments the atomic reference counter.
PyObject
PyObjectRef
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.
PyRef
A reference to a Python object.
PyRefExact
PyRef but guaranteed not to be a subtype instance
PyWeak
PyWeakRef

Traits§

AsObject
MaybeTraverse
This trait is used as a “Optional Trait”(I ’d like to use Trace? but it’s not allowed yet) for PyObjectPayload type
PyObjectPayload
PyPayload
PyThreadingConstraint
SlotOffset
Traverse
Type that need traverse it’s children should impl Traverse(Not MaybeTraverse)

Type Aliases§

PyResult
Use this type for functions which return a python object or an exception. Both the python object and the python exception are PyObjectRef types since exceptions are also python objects.
TraverseFn