Re: [PATCH v20 7/8] rust: Add `OwnableRefCounted`
| Newsgroups | org.freedesktop.lists.dri-devel,org.kernel.vger.linux-pci |
|---|---|
| Message-ID | <[email protected]> |
> From: Oliver Mangold <[email protected]> > > Types implementing one of these traits can safely convert between an > `ARef<T>` and an `Owned<T>`. > > This is useful for types which generally are accessed through an `ARef` > but have methods which can only safely be called when the reference is > unique, like e.g. `block::mq::Request::end_ok()`. > > Signed-off-by: Oliver Mangold <[email protected]> > [ Andreas: Fix formatting, update documentation, fix error handling in > examples. ] > Co-developed-by: Andreas Hindborg <[email protected]> > Signed-off-by: Andreas Hindborg <[email protected]> Sashiko has reviewed this patch and found no issues. It looks great! -- Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=7