#[doc(hidden)] struct ComplexEnum_VariantWithDefault;
Implementations§
Source§impl ComplexEnum_VariantWithDefault
impl ComplexEnum_VariantWithDefault
unsafe fn __pymethod_get_a__( py: Python<'_>, _slf: *mut PyObject, ) -> PyResult<*mut PyObject>
unsafe fn __pymethod_get_b__( py: Python<'_>, _slf: *mut PyObject, ) -> PyResult<*mut PyObject>
fn __pymethod___match_args____(py: Python<'_>) -> PyResult<PyObject>
unsafe fn __pymethod___new____( py: Python<'_>, _slf: *mut PyTypeObject, _args: *mut PyObject, _kwargs: *mut PyObject, ) -> PyResult<*mut PyObject>
Source§impl ComplexEnum_VariantWithDefault
impl ComplexEnum_VariantWithDefault
fn __pymethod_constructor__( py: Python<'_>, a: i32, b: Option<String>, ) -> PyClassInitializer<ComplexEnum_VariantWithDefault>
fn __match_args__(py: Python<'_>) -> PyResult<Bound<'_, PyTuple>>
fn a(slf: PyRef<'_, Self>) -> PyResult<PyObject>
fn b(slf: PyRef<'_, Self>) -> PyResult<PyObject>
Trait Implementations§
Source§impl PyClass for ComplexEnum_VariantWithDefault
impl PyClass for ComplexEnum_VariantWithDefault
Source§impl PyClassImpl for ComplexEnum_VariantWithDefault
impl PyClassImpl for ComplexEnum_VariantWithDefault
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 = ComplexEnum
type BaseType = ComplexEnum
Base class
Source§type ThreadChecker = SendablePyClass<ComplexEnum_VariantWithDefault>
type ThreadChecker = SendablePyClass<ComplexEnum_VariantWithDefault>
This handles following two situations: Read more
Source§type PyClassMutability = <<ComplexEnum as PyClassBaseType>::PyClassMutability as PyClassMutability>::ImmutableChild
type PyClassMutability = <<ComplexEnum as PyClassBaseType>::PyClassMutability as PyClassMutability>::ImmutableChild
Immutable or mutable
Source§type BaseNativeType = <<ComplexEnum_VariantWithDefault as PyClassImpl>::BaseType as PyClassBaseType>::BaseNativeType
type BaseNativeType = <<ComplexEnum_VariantWithDefault 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<ComplexEnum_VariantWithDefault> for PyClassImplCollector<ComplexEnum_VariantWithDefault>
impl PyClassNewTextSignature<ComplexEnum_VariantWithDefault> for PyClassImplCollector<ComplexEnum_VariantWithDefault>
fn new_text_signature(self) -> Option<&'static str>
Source§impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a ComplexEnum_VariantWithDefault
impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a ComplexEnum_VariantWithDefault
Source§impl PyTypeInfo for ComplexEnum_VariantWithDefault
impl PyTypeInfo for ComplexEnum_VariantWithDefault
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
].