diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2024-11-06 00:01:57 +0100 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2024-12-19 19:36:37 +0100 |
commit | ba3b81f3b668d3faa6cbdb39e123394f7bf637c7 (patch) | |
tree | 42d37373c9ad3d1004e2565e7b2e98647f3916d3 /rust/qemu-api/meson.build | |
parent | f50cd85c8475c16374d0e138efda222ce4455f53 (diff) | |
download | qemu-ba3b81f3b668d3faa6cbdb39e123394f7bf637c7.zip qemu-ba3b81f3b668d3faa6cbdb39e123394f7bf637c7.tar.gz qemu-ba3b81f3b668d3faa6cbdb39e123394f7bf637c7.tar.bz2 |
rust: qom: add initial subset of methods on Object
Add an example of implementing instance methods and converting the
result back to a Rust type. In this case the returned types are a
string (actually a Cow<str>; but that's transparent as long as it derefs
to &str) and a QOM class.
Reviewed-by: Zhao Liu <zhao1.liu@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'rust/qemu-api/meson.build')
0 files changed, 0 insertions, 0 deletions