Macro pyo3::impl_::pyclass::define_pyclass_setattr_slot

source ·
macro_rules! define_pyclass_setattr_slot {
    (
        $set_trait:ident,
        $del_trait:ident,
        $set:ident,
        $del:ident,
        $set_error:expr,
        $del_error:expr,
        $generate_macro:ident,
        $slot:ident,
        $func_ty:ident,
    ) => { ... };
}
Expand description

Macro which expands to three items

  • Trait for a setitem dunder
  • Trait for the corresponding delitem dunder
  • A macro which will use dtolnay specialisation to generate the shared slot for the two dunders
⚠️ Internal Docs ⚠️ Not Public API 👉 Official Docs Here