aboutsummaryrefslogtreecommitdiff
path: root/rust/qemu-api/src/module.rs
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2024-12-11 12:18:06 +0100
committerPaolo Bonzini <pbonzini@redhat.com>2025-01-10 23:34:43 +0100
commit7f65d4e58b67d6e5ee05c9381a50ef1eba3a5a1e (patch)
treec95e80c41e4eb93b73f17236a9d1022008476e50 /rust/qemu-api/src/module.rs
parentca0d60a6ad777ab617cbc4e6f328eaff60617b3f (diff)
downloadqemu-7f65d4e58b67d6e5ee05c9381a50ef1eba3a5a1e.zip
qemu-7f65d4e58b67d6e5ee05c9381a50ef1eba3a5a1e.tar.gz
qemu-7f65d4e58b67d6e5ee05c9381a50ef1eba3a5a1e.tar.bz2
rust: add a utility module for compile-time type checks
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>
Diffstat (limited to 'rust/qemu-api/src/module.rs')
0 files changed, 0 insertions, 0 deletions