On 12/12/24 10:40, Zhao Liu wrote:
On Mon, Dec 09, 2024 at 01:37:09PM +0100, Paolo Bonzini wrote:
Date: Mon, 9 Dec 2024 13:37:09 +0100
From: Paolo Bonzini
Subject: [PATCH 18/26] rust: qom: add possibility of overriding unparent
X-Mailer: git-send-email 2.47.1
Add a blanket definition of
On Mon, Dec 09, 2024 at 01:37:09PM +0100, Paolo Bonzini wrote:
> Date: Mon, 9 Dec 2024 13:37:09 +0100
> From: Paolo Bonzini
> Subject: [PATCH 18/26] rust: qom: add possibility of overriding unparent
> X-Mailer: git-send-email 2.47.1
>
> Add a blanket definition of ClassIn
Add a blanket definition of ClassInitImpl that thunks
ObjectImpl::UNPARENT and overrides it in ObjectClass if it is not
None.
ClassInitImpl can now call its superclass's ClassInitImpl,
so that the C and Rust hierarchies match more closely.
This is mostly done as an example of implementing the met