mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-12-19 14:08:39 -07:00
The `const_zero` crate provides a nice macro to zero type-specific constants, which doesn't need to enumerates the fields one by one. Introduce the `const_zero` macro to QEMU (along with its documentation), and use it to simplify the implementation of `Zeroable` trait. Suggested-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Zhao Liu <zhao1.liu@intel.com> Link: https://lore.kernel.org/r/20250123163143.679841-1-zhao1.liu@intel.com Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> |
||
|---|---|---|
| .. | ||
| assertions.rs | ||
| bindings.rs | ||
| bitops.rs | ||
| c_str.rs | ||
| callbacks.rs | ||
| cell.rs | ||
| irq.rs | ||
| lib.rs | ||
| module.rs | ||
| offset_of.rs | ||
| prelude.rs | ||
| qdev.rs | ||
| qom.rs | ||
| sysbus.rs | ||
| vmstate.rs | ||
| zeroable.rs | ||