rust: vmstate: implement Zeroable for VMStateField
authorPaolo Bonzini <pbonzini@redhat.com>
Sun, 29 Dec 2024 11:15:36 +0000 (12:15 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 23 Jan 2025 10:50:53 +0000 (11:50 +0100)
commit2537f8309885013c4b04ae7b2888591ba0cb6ca7
tree14c2890c15145b4c8d457bb312f6b7d40bde3b80
parent5b024b4e73f180402fde8485e8d4a51383592940
rust: vmstate: implement Zeroable for VMStateField

This shortens a bit the constants.  Do not bother using it
in the vmstate macros since most of them will go away soon.

Reviewed-by: Zhao Liu <zhao1.liu@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
rust/qemu-api/src/vmstate.rs
rust/qemu-api/src/zeroable.rs