pub type PyMethodDefType = PyMethodDefType;
๐Deprecated since 0.23.0: PyO3 implementation detail
Aliased Typeยง
enum PyMethodDefType {
Class(PyMethodDef),
Static(PyMethodDef),
Method(PyMethodDef),
ClassAttribute(PyClassAttributeDef),
Getter(PyGetterDef),
Setter(PySetterDef),
StructMember(PyMemberDef),
}
Variantsยง
Class(PyMethodDef)
Represents class method
Static(PyMethodDef)
Represents static method
Method(PyMethodDef)
Represents normal method
ClassAttribute(PyClassAttributeDef)
Represents class attribute, used by #[attribute]
Getter(PyGetterDef)
Represents getter descriptor, used by #[getter]
Setter(PySetterDef)
Represents setter descriptor, used by #[setter]
StructMember(PyMemberDef)
Represents a struct member