(dict: Option<PyDictRef>, member_count: usize)
| 308 | |
| 309 | impl ObjExt { |
| 310 | fn new(dict: Option<PyDictRef>, member_count: usize) -> Self { |
| 311 | Self { |
| 312 | dict: dict.map(InstanceDict::new), |
| 313 | slots: core::iter::repeat_with(|| PyRwLock::new(None)) |
| 314 | .take(member_count) |
| 315 | .collect_vec() |
| 316 | .into_boxed_slice(), |
| 317 | } |
| 318 | } |
| 319 | } |
| 320 | |
| 321 | impl fmt::Debug for ObjExt { |