(cls: PyTypeRef, args: FuncArgs, vm: &VirtualMachine)
| 1599 | #[inline] |
| 1600 | #[pyslot] |
| 1601 | fn slot_new(cls: PyTypeRef, args: FuncArgs, vm: &VirtualMachine) -> PyResult { |
| 1602 | let args: Self::Args = args.bind(vm)?; |
| 1603 | let payload = Self::py_new(&cls, args, vm)?; |
| 1604 | payload.into_ref_with_type(vm, cls).map(Into::into) |
| 1605 | } |
| 1606 | |
| 1607 | /// Creates the payload for this type. In most cases, just implement this method |
| 1608 | /// and let the default `slot_new` handle wrapping with the correct type. |
nothing calls this directly
no test coverage detected