(fmt: IntoStructFormatBytes, vm: &VirtualMachine)
| 227 | |
| 228 | #[pyfunction] |
| 229 | fn calcsize(fmt: IntoStructFormatBytes, vm: &VirtualMachine) -> PyResult<usize> { |
| 230 | Ok(fmt.format_spec(vm)?.size) |
| 231 | } |
| 232 | |
| 233 | #[pyattr] |
| 234 | #[pyclass(name = "Struct", traverse)] |