[−][src]Trait pyo3::type_object::PyTypeInfo
Python type information.
Associated Types
Loading content...Associated Constants
const NAME: &'static str
Class name
const MODULE: Option<&'static str>
Module name, if any
const DESCRIPTION: &'static str
Class doc string
const SIZE: usize
Size of the rust PyObject structure (PyObject + rust structure)
const OFFSET: isize
Type
instance offset inside PyObject structure
const FLAGS: usize
Type flags (ie PY_TYPE_FLAG_GC, PY_TYPE_FLAG_WEAKREF)
Required methods
unsafe fn type_object() -> &'static mut PyTypeObject
PyTypeObject instance for this type, which might still need to be initialized
Provided methods
fn is_instance(object: &PyAny) -> bool
Check if *mut ffi::PyObject
is instance of this type
fn is_exact_instance(object: &PyAny) -> bool
Check if *mut ffi::PyObject
is exact instance of this type