Skip to main content

Module pymethods

Module pymethods 

Source

Re-exports§

pub use crate::maybe_define_fastcall_function_with_keywords;
pub use crate::maybe_extract_arguments_fastcall;
pub use crate::internal::pyclass_init::tp_new_resolver;

Structs§

AsyncIterBaseTag
AsyncIterOptionTag
AsyncIterResultOptionTag
IterBaseTag
IterOptionTag
IterResultOptionTag
PyClassAttributeDef
PyDeleterDef
PyGetterDef
PyMethodDef
PySetterDef

Enums§

PyMethodDefType
PyMethodDefType represents different types of Python callable objects. It is used by the #[pymethods] attribute.
PyMethodType

Traits§

AsyncIterBaseKind
AsyncIterOptionKind
AsyncIterResultOptionKind
IterBaseKind
IterOptionKind
IterResultOptionKind

Functions§

_call_clear
Calls an implementation of clear for tp_clear
_call_traverse 👻
Calls an implementation of traverse for tp_traverse
call_super_clear 🔒
Call super-type traverse method, if necessary.
call_super_traverse 🔒
Call super-type traverse method, if necessary.
synthesized_clear
tp_clear for a #[pyclass] which defines no __clear__ of its own: calls the base type and clears the instance __dict__ (if it is a #[pyclass(dict)]).
synthesized_traverse
tp_traverse for a #[pyclass] which defines no __traverse__ of its own: visits the base type and the instance __dict__ (if it is a #[pyclass(dict)]).
tp_new_impl
SAFETY
traverse_impl 🔒
Visits the base type, the instance __dict__ and the pyclass’s own data, stopping as soon as one of them returns non-zero.

Type Aliases§

Deleter 🔒
Getter 🔒
Class getter / setters
PyClassAttributeFactory
Setter 🔒
⚠️ Internal Docs ⚠️ Not Public API 👉 Official Docs Here