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;

MacrosΒ§

iter_next_output πŸ”’

StructsΒ§

AsyncIterNextOutput
IterNextOutput
PyClassAttributeDef
PyDeleterDef
PyGetterDef
PyMethodDef
PySetterDef

EnumsΒ§

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

TraitsΒ§

AsyncIterNextConvertFallback
AsyncIterNextTypeFallbackexperimental-inspect
IterNextConvertFallback
IterNextTypeFallbackexperimental-inspect

FunctionsΒ§

_call_clear⚠
Calls an implementation of clear for tp_clear
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)]).
tp_new_impl⚠
SAFETY
tp_traverse πŸ‘» ⚠
Calls an implementation of traverse for tp_traverse
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