diff --git a/vm/src/pyobjectrc.rs b/vm/src/pyobjectrc.rs index 334aefc04..337a85a86 100644 --- a/vm/src/pyobjectrc.rs +++ b/vm/src/pyobjectrc.rs @@ -1,3 +1,16 @@ +//! Essential types for object models +//! +//! +-------------------------+--------------+---------------+ +//! | Management | Typed | Untyped | +//! +-------------------------+--------------+---------------+ +//! | Interpreter-independent | Py | PyObject | +//! | Reference-counted | PyRef | PyObjectRef | +//! | Weak | PyWeakRef | PyRef | +//! +-------------------------+--------------+---------------+ +//! +//! PyRef may looking like to be called as PyObjectWeak by the rule, +//! but not to do to remember it is a PyRef object. + use crate::common::atomic::{OncePtr, PyAtomic, Radium}; use crate::common::linked_list::{Link, LinkedList, Pointers}; use crate::common::lock::{PyMutex, PyMutexGuard, PyRwLock};