Inherit slots from base type. inherit_slots
(&self, base: &Self)
| 865 | |
| 866 | /// Inherit slots from base type. inherit_slots |
| 867 | pub(crate) fn inherit_slots(&self, base: &Self) { |
| 868 | // Use SLOT_DEFS to iterate all slots |
| 869 | // Note: as_buffer is handled in inherit_readonly_slots (not AtomicCell) |
| 870 | for def in SLOT_DEFS { |
| 871 | def.accessor.copyslot_if_none(self, base); |
| 872 | } |
| 873 | } |
| 874 | |
| 875 | // This is used for class initialization where the vm is not yet available. |
| 876 | pub fn set_str_attr<V: Into<PyObjectRef>>( |
no test coverage detected