Trait rustpython_vm::types::DefaultConstructor
source · 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§
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)
Object Safety§
This trait is not object safe.