[][src]Trait pyo3::typeob::PyTypeInfo

pub trait PyTypeInfo {
    type Type;
    type BaseType: PyTypeInfo;

    const NAME: &'static str;
    const DESCRIPTION: &'static str;
    const SIZE: usize;
    const OFFSET: isize;
    const FLAGS: usize;

    unsafe fn type_object() -> &'static mut PyTypeObject;

    fn is_instance(object: &PyObjectRef) -> bool { ... }
fn is_exact_instance(object: &PyObjectRef) -> bool { ... } }

Python type information.

Associated Types

Type of objects to store in PyObject struct

Base class

Associated Constants

Class name

Class doc string

Size of the rust PyObject structure (PyObject + rust structure)

Type instance offset inside PyObject structure

Type flags (ie PY_TYPE_FLAG_GC, PY_TYPE_FLAG_WEAKREF)

Required Methods

PyTypeObject instance for this type

Provided Methods

Check if *mut ffi::PyObject is instance of this type

Check if *mut ffi::PyObject is exact instance of this type

Implementors

impl PyTypeInfo for PyModule
[src]

impl PyTypeInfo for PyBool
[src]

impl PyTypeInfo for PyByteArray
[src]

impl PyTypeInfo for PyBytes
[src]

impl PyTypeInfo for PyComplex
[src]

impl PyTypeInfo for PyDate
[src]

impl PyTypeInfo for PyDateTime
[src]

impl PyTypeInfo for PyDelta
[src]

impl PyTypeInfo for PyDict
[src]

impl PyTypeInfo for PyFloat
[src]

impl PyTypeInfo for PyFrozenSet
[src]

impl PyTypeInfo for PyList
[src]

impl PyTypeInfo for PyLong
[src]

impl PyTypeInfo for PyObjectRef
[src]

impl PyTypeInfo for PySet
[src]

impl PyTypeInfo for PySlice
[src]

impl PyTypeInfo for PyString
[src]

impl PyTypeInfo for PyTime
[src]

impl PyTypeInfo for PyTuple
[src]

impl PyTypeInfo for PyType
[src]

impl PyTypeInfo for PyTzInfo
[src]