aboutsummaryrefslogtreecommitdiff
path: root/subprojects/packagefiles/proc-macro-error-1-rs
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2024-12-04 08:58:46 +0100
committerPaolo Bonzini <pbonzini@redhat.com>2025-01-10 23:34:44 +0100
commit809c703a60240125eec16ec134f60793134b4f61 (patch)
tree2d7cbaf0524a078cc85ceb52cf7d3ff377c51ea6 /subprojects/packagefiles/proc-macro-error-1-rs
parenta3b620fff73ec762f2a77a077eb8389dddab4833 (diff)
downloadqemu-809c703a60240125eec16ec134f60793134b4f61.zip
qemu-809c703a60240125eec16ec134f60793134b4f61.tar.gz
qemu-809c703a60240125eec16ec134f60793134b4f61.tar.bz2
rust: qemu-api-macros: add automatic TryFrom/TryInto derivation
This is going to be fairly common. Using a custom procedural macro provides better error messages and automatically finds the right type. Note that this is different from the same-named macro in the derive_more crate. That one provides conversion from e.g. tuples to enums with tuple variants, not from integers to enums. Reviewed-by: Zhao Liu <zhao1.liu@intel.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'subprojects/packagefiles/proc-macro-error-1-rs')
0 files changed, 0 insertions, 0 deletions