Trait rustpython_vm::types::AsMapping
source · pub trait AsMapping: PyPayload {
const __OWN_METHOD_DEFS: &'static [PyMethodDef] = _;
// Required method
fn as_mapping() -> &'static PyMappingMethods;
// Provided methods
fn mapping_downcast(mapping: PyMapping<'_>) -> &Py<Self> { ... }
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] = _
Required Methods§
fn as_mapping() -> &'static PyMappingMethods
Provided Methods§
fn mapping_downcast(mapping: PyMapping<'_>) -> &Py<Self>
fn __extend_py_class(ctx: &Context, class: &'static Py<PyType>)
fn __extend_slots(slots: &mut PyTypeSlots)
Object Safety§
This trait is not object safe.