qemu-cr16/rust/qemu-api/src
Paolo Bonzini 688c674158 rust: qom: allow initializing interface vtables
Unlike regular classes, interface vtables can only be obtained via
object_class_dynamic_cast.  Provide a wrapper that allows accessing
the vtable and pass it to a ClassInitImpl implementation, for example
ClassInitImpl<ResettableClass>.

Reviewed-by: Zhao Liu <zhao1.liu@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2025-02-13 12:19:33 +01:00
..
assertions.rs rust: add a utility module for compile-time type checks 2025-01-10 23:34:43 +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
callbacks.rs rust: callbacks: allow passing optional callbacks as () 2025-02-13 12:19:33 +01:00
cell.rs bql: add a "mock" BQL for Rust unit tests 2024-12-19 19:36:37 +01:00
irq.rs rust: qdev: expose inherited methods to subclasses of SysBusDevice 2025-01-10 23:34:44 +01:00
lib.rs rust: restrict missing_const_for_fn to qemu_api crate 2025-02-10 11:18:32 +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: allow initializing interface vtables 2025-02-13 12:19:33 +01:00
qdev.rs rust: qdev: add clock creation 2025-02-13 12:19:33 +01:00
qom.rs rust: qom: allow initializing interface vtables 2025-02-13 12:19:33 +01:00
sysbus.rs rust: qdev: expose inherited methods to subclasses of SysBusDevice 2025-01-10 23:34:44 +01:00
vmstate.rs rust: qdev: add clock creation 2025-02-13 12:19:33 +01:00
zeroable.rs rust/zeroable: Implement Zeroable with const_zero macro 2025-01-28 17:58:09 +01:00