(&self)
| 1457 | |
| 1458 | #[inline(always)] |
| 1459 | pub fn dict(&self) -> Option<PyDictRef> { |
| 1460 | self.instance_dict().map(|d| d.get()) |
| 1461 | } |
| 1462 | |
| 1463 | /// Set the dict field. Returns `Err(dict)` if this object does not have a dict field |
| 1464 | /// in the first place. |