rust: qemu_api: add vmstate_struct
authorPaolo Bonzini <pbonzini@redhat.com>
Sat, 21 Dec 2024 15:28:29 +0000 (16:28 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 23 Jan 2025 10:50:53 +0000 (11:50 +0100)
commit9a2ba4882d320a650b4f98f92b49bb45956d227e
treed61fbd572508e5eb182b4ee66614b874ff9e82b2
parent00f89716a8858f6b9274dd4067740fb40212e88b
rust: qemu_api: add vmstate_struct

It is not type safe, but it's the best that can be done without
const_refs_static.  It can also be used with BqlCell and BqlRefCell.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
rust/qemu-api/src/vmstate.rs