aboutsummaryrefslogtreecommitdiff
path: root/rust/qemu-api/src/assertions.rs
AgeCommit message (Collapse)AuthorFilesLines
2025-01-10rust: add a utility module for compile-time type checksPaolo Bonzini1-0/+90
It is relatively common in the low-level qemu_api code to assert that a field of a struct has a specific type; for example, it can be used to ensure that the fields match what the qemu_api and C code expects for safety. Reviewed-by: Zhao Liu <zhao1.liu@intel.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>