Crates.io | shared-rc |
lib.rs | shared-rc |
version | 0.1.1 |
source | src |
created_at | 2022-09-21 23:29:10.664656 |
updated_at | 2023-01-04 00:49:11.184292 |
description | Rc wrapper which can separate the data from the reference count |
homepage | |
repository | https://github.com/point-rs/shared-rc |
max_upload_size | |
id | 671222 |
size | 25,016 |
Reference-counted fat pointers that contain both an owning std Rc
(or Arc
)
and a pointer to a field owned by that Rc
. This is a "self-referential" type
in the vein of ouroboros or yoke.
By specializing just for the reference-counted pointers, this crate provides a much simpler API compared to that of ouroboros, yoke, or any other crate for general self-referential types.