pyo3/types/frame.rs
1use crate::ffi;
2use crate::PyAny;
3
4/// Represents a Python frame.
5///
6/// Values of this type are accessed via PyO3's smart pointers, e.g. as
7/// [`Py<PyFrame>`][crate::Py] or [`Bound<'py, PyFrame>`][crate::Bound].
8#[repr(transparent)]
9pub struct PyFrame(PyAny);
10
11pyobject_native_type_core!(
12 PyFrame,
13 pyobject_native_static_type_object!(ffi::PyFrame_Type),
14 #checkfunction=ffi::PyFrame_Check
15);