pub trait DefaultConstructor: PyPayload + Default {
    const __OWN_METHOD_DEFS: &'static [PyMethodDef] = _;

    // Provided methods
    fn slot_new(
        cls: PyTypeRef,
        _args: FuncArgs,
        vm: &VirtualMachine
    ) -> PyResult { ... }
    fn __extend_py_class(ctx: &Context, class: &'static Py<PyType>) { ... }
    fn __extend_slots(slots: &mut PyTypeSlots) { ... }
}

Provided Associated Constants§

source

const __OWN_METHOD_DEFS: &'static [PyMethodDef] = _

Provided Methods§

Object Safety§

This trait is not object safe.

Implementors§