devela::_dep::pyo3::class

Type Alias PyMethodDefType

pub type PyMethodDefType = PyMethodDefType;
👎Deprecated since 0.23.0: PyO3 implementation detail
Available on crate features dep_pyo3 and std only.

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