pyo3::class::methods

Type Alias PyMethodDefType

Source
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

โš ๏ธ Internal Docs โš ๏ธ Not Public API ๐Ÿ‘‰ Official Docs Here