[−][src]Trait pyo3::typeob::PyTypeInfo
Python type information.
Associated Types
Associated Constants
const NAME: &'static str
Class name
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
Provided Methods
fn is_instance(object: &PyObjectRef) -> bool
Check if *mut ffi::PyObject
is instance of this type
fn is_exact_instance(object: &PyObjectRef) -> bool
Check if *mut ffi::PyObject
is exact instance of this type
Implementors
impl PyTypeInfo for PyModule
[src]
impl PyTypeInfo for PyModule
type Type = ()
type BaseType = PyObjectRef
const NAME: &'static str
[src]
const SIZE: usize
[src]
const OFFSET: isize
[src]
unsafe fn type_object() -> &'static mut PyTypeObject
[src]
unsafe fn type_object() -> &'static mut PyTypeObject
fn is_instance(ptr: &PyObjectRef) -> bool
[src]
fn is_instance(ptr: &PyObjectRef) -> bool
const DESCRIPTION: &'static str
[src]
const FLAGS: usize
[src]
fn is_exact_instance(object: &PyObjectRef) -> bool
[src]
fn is_exact_instance(object: &PyObjectRef) -> bool
impl PyTypeInfo for PyBool
[src]
impl PyTypeInfo for PyBool
type Type = ()
type BaseType = PyObjectRef
const NAME: &'static str
[src]
const SIZE: usize
[src]
const OFFSET: isize
[src]
unsafe fn type_object() -> &'static mut PyTypeObject
[src]
unsafe fn type_object() -> &'static mut PyTypeObject
fn is_instance(ptr: &PyObjectRef) -> bool
[src]
fn is_instance(ptr: &PyObjectRef) -> bool
const DESCRIPTION: &'static str
[src]
const FLAGS: usize
[src]
fn is_exact_instance(object: &PyObjectRef) -> bool
[src]
fn is_exact_instance(object: &PyObjectRef) -> bool
impl PyTypeInfo for PyByteArray
[src]
impl PyTypeInfo for PyByteArray
type Type = ()
type BaseType = PyObjectRef
const NAME: &'static str
[src]
const SIZE: usize
[src]
const OFFSET: isize
[src]
unsafe fn type_object() -> &'static mut PyTypeObject
[src]
unsafe fn type_object() -> &'static mut PyTypeObject
fn is_instance(ptr: &PyObjectRef) -> bool
[src]
fn is_instance(ptr: &PyObjectRef) -> bool
const DESCRIPTION: &'static str
[src]
const FLAGS: usize
[src]
fn is_exact_instance(object: &PyObjectRef) -> bool
[src]
fn is_exact_instance(object: &PyObjectRef) -> bool
impl PyTypeInfo for PyBytes
[src]
impl PyTypeInfo for PyBytes
type Type = ()
type BaseType = PyObjectRef
const NAME: &'static str
[src]
const SIZE: usize
[src]
const OFFSET: isize
[src]
unsafe fn type_object() -> &'static mut PyTypeObject
[src]
unsafe fn type_object() -> &'static mut PyTypeObject
fn is_instance(ptr: &PyObjectRef) -> bool
[src]
fn is_instance(ptr: &PyObjectRef) -> bool
const DESCRIPTION: &'static str
[src]
const FLAGS: usize
[src]
fn is_exact_instance(object: &PyObjectRef) -> bool
[src]
fn is_exact_instance(object: &PyObjectRef) -> bool
impl PyTypeInfo for PyComplex
[src]
impl PyTypeInfo for PyComplex
type Type = ()
type BaseType = PyObjectRef
const NAME: &'static str
[src]
const SIZE: usize
[src]
const OFFSET: isize
[src]
unsafe fn type_object() -> &'static mut PyTypeObject
[src]
unsafe fn type_object() -> &'static mut PyTypeObject
fn is_instance(ptr: &PyObjectRef) -> bool
[src]
fn is_instance(ptr: &PyObjectRef) -> bool
const DESCRIPTION: &'static str
[src]
const FLAGS: usize
[src]
fn is_exact_instance(object: &PyObjectRef) -> bool
[src]
fn is_exact_instance(object: &PyObjectRef) -> bool
impl PyTypeInfo for PyDate
[src]
impl PyTypeInfo for PyDate
type Type = ()
type BaseType = PyObjectRef
const NAME: &'static str
[src]
const SIZE: usize
[src]
const OFFSET: isize
[src]
unsafe fn type_object() -> &'static mut PyTypeObject
[src]
unsafe fn type_object() -> &'static mut PyTypeObject
fn is_instance(ptr: &PyObjectRef) -> bool
[src]
fn is_instance(ptr: &PyObjectRef) -> bool
const DESCRIPTION: &'static str
[src]
const FLAGS: usize
[src]
fn is_exact_instance(object: &PyObjectRef) -> bool
[src]
fn is_exact_instance(object: &PyObjectRef) -> bool
impl PyTypeInfo for PyDateTime
[src]
impl PyTypeInfo for PyDateTime
type Type = ()
type BaseType = PyObjectRef
const NAME: &'static str
[src]
const SIZE: usize
[src]
const OFFSET: isize
[src]
unsafe fn type_object() -> &'static mut PyTypeObject
[src]
unsafe fn type_object() -> &'static mut PyTypeObject
fn is_instance(ptr: &PyObjectRef) -> bool
[src]
fn is_instance(ptr: &PyObjectRef) -> bool
const DESCRIPTION: &'static str
[src]
const FLAGS: usize
[src]
fn is_exact_instance(object: &PyObjectRef) -> bool
[src]
fn is_exact_instance(object: &PyObjectRef) -> bool
impl PyTypeInfo for PyDelta
[src]
impl PyTypeInfo for PyDelta
type Type = ()
type BaseType = PyObjectRef
const NAME: &'static str
[src]
const SIZE: usize
[src]
const OFFSET: isize
[src]
unsafe fn type_object() -> &'static mut PyTypeObject
[src]
unsafe fn type_object() -> &'static mut PyTypeObject
fn is_instance(ptr: &PyObjectRef) -> bool
[src]
fn is_instance(ptr: &PyObjectRef) -> bool
const DESCRIPTION: &'static str
[src]
const FLAGS: usize
[src]
fn is_exact_instance(object: &PyObjectRef) -> bool
[src]
fn is_exact_instance(object: &PyObjectRef) -> bool
impl PyTypeInfo for PyDict
[src]
impl PyTypeInfo for PyDict
type Type = ()
type BaseType = PyObjectRef
const NAME: &'static str
[src]
const SIZE: usize
[src]
const OFFSET: isize
[src]
unsafe fn type_object() -> &'static mut PyTypeObject
[src]
unsafe fn type_object() -> &'static mut PyTypeObject
fn is_instance(ptr: &PyObjectRef) -> bool
[src]
fn is_instance(ptr: &PyObjectRef) -> bool
const DESCRIPTION: &'static str
[src]
const FLAGS: usize
[src]
fn is_exact_instance(object: &PyObjectRef) -> bool
[src]
fn is_exact_instance(object: &PyObjectRef) -> bool
impl PyTypeInfo for PyFloat
[src]
impl PyTypeInfo for PyFloat
type Type = ()
type BaseType = PyObjectRef
const NAME: &'static str
[src]
const SIZE: usize
[src]
const OFFSET: isize
[src]
unsafe fn type_object() -> &'static mut PyTypeObject
[src]
unsafe fn type_object() -> &'static mut PyTypeObject
fn is_instance(ptr: &PyObjectRef) -> bool
[src]
fn is_instance(ptr: &PyObjectRef) -> bool
const DESCRIPTION: &'static str
[src]
const FLAGS: usize
[src]
fn is_exact_instance(object: &PyObjectRef) -> bool
[src]
fn is_exact_instance(object: &PyObjectRef) -> bool
impl PyTypeInfo for PyFrozenSet
[src]
impl PyTypeInfo for PyFrozenSet
type Type = ()
type BaseType = PyObjectRef
const NAME: &'static str
[src]
const SIZE: usize
[src]
const OFFSET: isize
[src]
unsafe fn type_object() -> &'static mut PyTypeObject
[src]
unsafe fn type_object() -> &'static mut PyTypeObject
fn is_instance(ptr: &PyObjectRef) -> bool
[src]
fn is_instance(ptr: &PyObjectRef) -> bool
const DESCRIPTION: &'static str
[src]
const FLAGS: usize
[src]
fn is_exact_instance(object: &PyObjectRef) -> bool
[src]
fn is_exact_instance(object: &PyObjectRef) -> bool
impl PyTypeInfo for PyList
[src]
impl PyTypeInfo for PyList
type Type = ()
type BaseType = PyObjectRef
const NAME: &'static str
[src]
const SIZE: usize
[src]
const OFFSET: isize
[src]
unsafe fn type_object() -> &'static mut PyTypeObject
[src]
unsafe fn type_object() -> &'static mut PyTypeObject
fn is_instance(ptr: &PyObjectRef) -> bool
[src]
fn is_instance(ptr: &PyObjectRef) -> bool
const DESCRIPTION: &'static str
[src]
const FLAGS: usize
[src]
fn is_exact_instance(object: &PyObjectRef) -> bool
[src]
fn is_exact_instance(object: &PyObjectRef) -> bool
impl PyTypeInfo for PyLong
[src]
impl PyTypeInfo for PyLong
type Type = ()
type BaseType = PyObjectRef
const NAME: &'static str
[src]
const SIZE: usize
[src]
const OFFSET: isize
[src]
unsafe fn type_object() -> &'static mut PyTypeObject
[src]
unsafe fn type_object() -> &'static mut PyTypeObject
fn is_instance(ptr: &PyObjectRef) -> bool
[src]
fn is_instance(ptr: &PyObjectRef) -> bool
const DESCRIPTION: &'static str
[src]
const FLAGS: usize
[src]
fn is_exact_instance(object: &PyObjectRef) -> bool
[src]
fn is_exact_instance(object: &PyObjectRef) -> bool
impl PyTypeInfo for PyObjectRef
[src]
impl PyTypeInfo for PyObjectRef
type Type = ()
type BaseType = PyObjectRef
const NAME: &'static str
[src]
const SIZE: usize
[src]
const OFFSET: isize
[src]
unsafe fn type_object() -> &'static mut PyTypeObject
[src]
unsafe fn type_object() -> &'static mut PyTypeObject
fn is_instance(ptr: &PyObjectRef) -> bool
[src]
fn is_instance(ptr: &PyObjectRef) -> bool
const DESCRIPTION: &'static str
[src]
const FLAGS: usize
[src]
fn is_exact_instance(object: &PyObjectRef) -> bool
[src]
fn is_exact_instance(object: &PyObjectRef) -> bool
impl PyTypeInfo for PySet
[src]
impl PyTypeInfo for PySet
type Type = ()
type BaseType = PyObjectRef
const NAME: &'static str
[src]
const SIZE: usize
[src]
const OFFSET: isize
[src]
unsafe fn type_object() -> &'static mut PyTypeObject
[src]
unsafe fn type_object() -> &'static mut PyTypeObject
fn is_instance(ptr: &PyObjectRef) -> bool
[src]
fn is_instance(ptr: &PyObjectRef) -> bool
const DESCRIPTION: &'static str
[src]
const FLAGS: usize
[src]
fn is_exact_instance(object: &PyObjectRef) -> bool
[src]
fn is_exact_instance(object: &PyObjectRef) -> bool
impl PyTypeInfo for PySlice
[src]
impl PyTypeInfo for PySlice
type Type = ()
type BaseType = PyObjectRef
const NAME: &'static str
[src]
const SIZE: usize
[src]
const OFFSET: isize
[src]
unsafe fn type_object() -> &'static mut PyTypeObject
[src]
unsafe fn type_object() -> &'static mut PyTypeObject
fn is_instance(ptr: &PyObjectRef) -> bool
[src]
fn is_instance(ptr: &PyObjectRef) -> bool
const DESCRIPTION: &'static str
[src]
const FLAGS: usize
[src]
fn is_exact_instance(object: &PyObjectRef) -> bool
[src]
fn is_exact_instance(object: &PyObjectRef) -> bool
impl PyTypeInfo for PyString
[src]
impl PyTypeInfo for PyString
type Type = ()
type BaseType = PyObjectRef
const NAME: &'static str
[src]
const SIZE: usize
[src]
const OFFSET: isize
[src]
unsafe fn type_object() -> &'static mut PyTypeObject
[src]
unsafe fn type_object() -> &'static mut PyTypeObject
fn is_instance(ptr: &PyObjectRef) -> bool
[src]
fn is_instance(ptr: &PyObjectRef) -> bool
const DESCRIPTION: &'static str
[src]
const FLAGS: usize
[src]
fn is_exact_instance(object: &PyObjectRef) -> bool
[src]
fn is_exact_instance(object: &PyObjectRef) -> bool
impl PyTypeInfo for PyTime
[src]
impl PyTypeInfo for PyTime
type Type = ()
type BaseType = PyObjectRef
const NAME: &'static str
[src]
const SIZE: usize
[src]
const OFFSET: isize
[src]
unsafe fn type_object() -> &'static mut PyTypeObject
[src]
unsafe fn type_object() -> &'static mut PyTypeObject
fn is_instance(ptr: &PyObjectRef) -> bool
[src]
fn is_instance(ptr: &PyObjectRef) -> bool
const DESCRIPTION: &'static str
[src]
const FLAGS: usize
[src]
fn is_exact_instance(object: &PyObjectRef) -> bool
[src]
fn is_exact_instance(object: &PyObjectRef) -> bool
impl PyTypeInfo for PyTuple
[src]
impl PyTypeInfo for PyTuple
type Type = ()
type BaseType = PyObjectRef
const NAME: &'static str
[src]
const SIZE: usize
[src]
const OFFSET: isize
[src]
unsafe fn type_object() -> &'static mut PyTypeObject
[src]
unsafe fn type_object() -> &'static mut PyTypeObject
fn is_instance(ptr: &PyObjectRef) -> bool
[src]
fn is_instance(ptr: &PyObjectRef) -> bool
const DESCRIPTION: &'static str
[src]
const FLAGS: usize
[src]
fn is_exact_instance(object: &PyObjectRef) -> bool
[src]
fn is_exact_instance(object: &PyObjectRef) -> bool
impl PyTypeInfo for PyType
[src]
impl PyTypeInfo for PyType
type Type = ()
type BaseType = PyObjectRef
const NAME: &'static str
[src]
const SIZE: usize
[src]
const OFFSET: isize
[src]
unsafe fn type_object() -> &'static mut PyTypeObject
[src]
unsafe fn type_object() -> &'static mut PyTypeObject
fn is_instance(ptr: &PyObjectRef) -> bool
[src]
fn is_instance(ptr: &PyObjectRef) -> bool
const DESCRIPTION: &'static str
[src]
const FLAGS: usize
[src]
fn is_exact_instance(object: &PyObjectRef) -> bool
[src]
fn is_exact_instance(object: &PyObjectRef) -> bool
impl PyTypeInfo for PyTzInfo
[src]
impl PyTypeInfo for PyTzInfo
type Type = ()
type BaseType = PyObjectRef
const NAME: &'static str
[src]
const SIZE: usize
[src]
const OFFSET: isize
[src]
unsafe fn type_object() -> &'static mut PyTypeObject
[src]
unsafe fn type_object() -> &'static mut PyTypeObject
fn is_instance(ptr: &PyObjectRef) -> bool
[src]
fn is_instance(ptr: &PyObjectRef) -> bool
const DESCRIPTION: &'static str
[src]
const FLAGS: usize
[src]
fn is_exact_instance(object: &PyObjectRef) -> bool
[src]
fn is_exact_instance(object: &PyObjectRef) -> bool