qemu-cr16/rust/qemu-api/src
Paolo Bonzini ba3b81f3b6 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>
2024-12-19 19:36:37 +01:00
..
bindings.rs rust: build: establish a baseline of lints across all crates 2024-12-10 18:44:06 +01:00
bitops.rs rust: add a bit operation module 2024-12-10 18:49:26 +01:00
c_str.rs rust: introduce a c_str macro 2024-11-05 14:18:16 +01:00
cell.rs bql: add a "mock" BQL for Rust unit tests 2024-12-19 19:36:37 +01:00
irq.rs rust: add bindings for interrupt sources 2024-12-10 18:49:26 +01:00
lib.rs rust: rename qemu-api modules to follow C code a bit more 2024-12-19 19:36:37 +01:00
module.rs rust: rename qemu-api modules to follow C code a bit more 2024-12-19 19:36:37 +01:00
offset_of.rs rust: introduce alternative implementation of offset_of! 2024-11-05 14:18:16 +01:00
prelude.rs rust: qom: add initial subset of methods on Object 2024-12-19 19:36:37 +01:00
qdev.rs rust: qom: add casting functionality 2024-12-19 19:36:37 +01:00
qom.rs rust: qom: add initial subset of methods on Object 2024-12-19 19:36:37 +01:00
sysbus.rs rust: qom: add casting functionality 2024-12-19 19:36:37 +01:00
vmstate.rs rust: re-export C types from qemu-api submodules 2024-12-19 19:36:37 +01:00
zeroable.rs rust: fix doc test syntax 2024-12-10 18:49:24 +01:00