Re: [PATCH v6 1/5] rust: types: Add Ownable/Owned types
From: Alice Ryhl
Date: Mon Mar 10 2025 - 05:50:22 EST
On Mon, Mar 10, 2025 at 08:49:43AM +0000, Oliver Mangold wrote:
> From: Asahi Lina <lina@xxxxxxxxxxxxx>
>
> By analogy to AlwaysRefCounted and ARef, an Ownable type is a (typically
> C FFI) type that *may* be owned by Rust, but need not be. Unlike
> AlwaysRefCounted, this mechanism expects the reference to be unique
> within Rust, and does not allow cloning.
>
> Conceptually, this is similar to a KBox<T>, except that it delegates
> resource management to the T instead of using a generic allocator.
>
> Signed-off-by: Asahi Lina <lina@xxxxxxxxxxxxx>
You can't send a patch by others without adding your own SoB.
Alice