Home
last modified time | relevance | path

Searched hist:c6c4f3e0d90990c642523c087482eac3f42566c1 (Results 1 – 3 of 3) sorted by relevance

/qemu/rust/qemu-api/src/
H A Dqom.rsc6c4f3e0d90990c642523c087482eac3f42566c1 Mon Oct 28 13:42:23 UTC 2024 Paolo Bonzini <pbonzini@redhat.com> rust: qom: move ClassInitImpl to the instance side

Put all traits on the instance struct, which makes it possible to reuse
class structs if no new virtual methods or class fields are added.
This is almost always the case for devices (because they are leaf
classes), which is the primary use case for Rust.

This is also simpler: soon we will find the implemented methods without
macros, and this removes the need to go from the class struct to the
instance struct to find the implementation of the *Impl traits.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
/qemu/rust/qemu-api/tests/
H A Dtests.rsc6c4f3e0d90990c642523c087482eac3f42566c1 Mon Oct 28 13:42:23 UTC 2024 Paolo Bonzini <pbonzini@redhat.com> rust: qom: move ClassInitImpl to the instance side

Put all traits on the instance struct, which makes it possible to reuse
class structs if no new virtual methods or class fields are added.
This is almost always the case for devices (because they are leaf
classes), which is the primary use case for Rust.

This is also simpler: soon we will find the implemented methods without
macros, and this removes the need to go from the class struct to the
instance struct to find the implementation of the *Impl traits.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
/qemu/rust/hw/char/pl011/src/
H A Ddevice.rsc6c4f3e0d90990c642523c087482eac3f42566c1 Mon Oct 28 13:42:23 UTC 2024 Paolo Bonzini <pbonzini@redhat.com> rust: qom: move ClassInitImpl to the instance side

Put all traits on the instance struct, which makes it possible to reuse
class structs if no new virtual methods or class fields are added.
This is almost always the case for devices (because they are leaf
classes), which is the primary use case for Rust.

This is also simpler: soon we will find the implemented methods without
macros, and this removes the need to go from the class struct to the
instance struct to find the implementation of the *Impl traits.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>