#[doc(hidden)] struct SimpleTupleEnum_Int;
Implementations§
Source§impl SimpleTupleEnum_Int
impl SimpleTupleEnum_Int
unsafe fn __pymethod_get__0__( py: Python<'_>, _slf: *mut PyObject, ) -> PyResult<*mut PyObject>
fn __pymethod___match_args____(py: Python<'_>) -> PyResult<PyObject>
unsafe fn __pymethod___default___len______( py: Python<'_>, _raw_slf: *mut PyObject, ) -> PyResult<Py_ssize_t>
unsafe fn __pymethod___default___getitem______( py: Python<'_>, _raw_slf: *mut PyObject, arg0: *mut PyObject, ) -> PyResult<*mut PyObject>
unsafe fn __pymethod___new____( py: Python<'_>, _slf: *mut PyTypeObject, _args: *mut PyObject, _kwargs: *mut PyObject, ) -> PyResult<*mut PyObject>
Source§impl SimpleTupleEnum_Int
impl SimpleTupleEnum_Int
fn __pymethod_constructor__( py: Python<'_>, _0: i32, ) -> PyClassInitializer<SimpleTupleEnum_Int>
fn __len__(slf: PyRef<'_, Self>) -> PyResult<usize>
fn __getitem__(slf: PyRef<'_, Self>, idx: usize) -> PyResult<PyObject>
fn __match_args__(py: Python<'_>) -> PyResult<Bound<'_, PyTuple>>
fn _0(slf: PyRef<'_, Self>) -> PyResult<PyObject>
Trait Implementations§
Source§impl PyClass for SimpleTupleEnum_Int
impl PyClass for SimpleTupleEnum_Int
Source§impl PyClassImpl for SimpleTupleEnum_Int
impl PyClassImpl for SimpleTupleEnum_Int
Source§const IS_BASETYPE: bool = false
const IS_BASETYPE: bool = false
#[pyclass(subclass)]
Source§const IS_SUBCLASS: bool = true
const IS_SUBCLASS: bool = true
#[pyclass(extends=…)]
Source§const IS_MAPPING: bool = false
const IS_MAPPING: bool = false
#[pyclass(mapping)]
Source§const IS_SEQUENCE: bool = false
const IS_SEQUENCE: bool = false
#[pyclass(sequence)]
Source§type BaseType = SimpleTupleEnum
type BaseType = SimpleTupleEnum
Base class
Source§type ThreadChecker = SendablePyClass<SimpleTupleEnum_Int>
type ThreadChecker = SendablePyClass<SimpleTupleEnum_Int>
This handles following two situations: Read more
Source§type PyClassMutability = <<SimpleTupleEnum as PyClassBaseType>::PyClassMutability as PyClassMutability>::ImmutableChild
type PyClassMutability = <<SimpleTupleEnum as PyClassBaseType>::PyClassMutability as PyClassMutability>::ImmutableChild
Immutable or mutable
Source§type BaseNativeType = <<SimpleTupleEnum_Int as PyClassImpl>::BaseType as PyClassBaseType>::BaseNativeType
type BaseNativeType = <<SimpleTupleEnum_Int as PyClassImpl>::BaseType as PyClassBaseType>::BaseNativeType
The closest native ancestor. This is
PyAny
by default, and when you declare
#[pyclass(extends=PyDict)]
, it’s PyDict
.fn items_iter() -> PyClassItemsIter
fn lazy_type_object() -> &'static LazyTypeObject<Self>
fn dict_offset() -> Option<isize>
fn weaklist_offset() -> Option<isize>
Source§impl PyClassNewTextSignature<SimpleTupleEnum_Int> for PyClassImplCollector<SimpleTupleEnum_Int>
impl PyClassNewTextSignature<SimpleTupleEnum_Int> for PyClassImplCollector<SimpleTupleEnum_Int>
fn new_text_signature(self) -> Option<&'static str>
Source§impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a SimpleTupleEnum_Int
impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a SimpleTupleEnum_Int
Source§impl PyTypeInfo for SimpleTupleEnum_Int
impl PyTypeInfo for SimpleTupleEnum_Int
Source§fn type_object_raw(py: Python<'_>) -> *mut PyTypeObject
fn type_object_raw(py: Python<'_>) -> *mut PyTypeObject
Returns the PyTypeObject instance for this type.
§fn type_object(py: Python<'_>) -> Bound<'_, PyType>
fn type_object(py: Python<'_>) -> Bound<'_, PyType>
Returns the safe abstraction over the type object.
§fn type_object_bound(py: Python<'_>) -> Bound<'_, PyType>
fn type_object_bound(py: Python<'_>) -> Bound<'_, PyType>
👎Deprecated since 0.23.0: renamed to
PyTypeInfo::type_object
Deprecated name for [
PyTypeInfo::type_object
].§fn is_type_of(object: &Bound<'_, PyAny>) -> bool
fn is_type_of(object: &Bound<'_, PyAny>) -> bool
Checks if
object
is an instance of this type or a subclass of this type.§fn is_type_of_bound(object: &Bound<'_, PyAny>) -> bool
fn is_type_of_bound(object: &Bound<'_, PyAny>) -> bool
👎Deprecated since 0.23.0: renamed to
PyTypeInfo::is_type_of
Deprecated name for [
PyTypeInfo::is_type_of
].§fn is_exact_type_of(object: &Bound<'_, PyAny>) -> bool
fn is_exact_type_of(object: &Bound<'_, PyAny>) -> bool
Checks if
object
is an instance of this type.§fn is_exact_type_of_bound(object: &Bound<'_, PyAny>) -> bool
fn is_exact_type_of_bound(object: &Bound<'_, PyAny>) -> bool
👎Deprecated since 0.23.0: renamed to
PyTypeInfo::is_exact_type_of
Deprecated name for [
PyTypeInfo::is_exact_type_of
].