Crates.io | wobbly |
lib.rs | wobbly |
version | 0.1.1 |
source | src |
created_at | 2024-02-24 19:28:15.682551 |
updated_at | 2024-02-25 03:59:59.885292 |
description | wobbly-owned reference counting pointers that mostly behave like Weak but can also keep a value alive |
homepage | https://github.com/juntyr/wobbly |
repository | https://github.com/juntyr/wobbly |
max_upload_size | |
id | 1151879 |
size | 35,268 |
wobbly
provides the single-threaded rc::Wobbly<T>
and thread-safe sync::Wobbly<T>
reference-counting pointers that are similar to Weak
but provide wobbly-shared ownership of a value of type T, allocated on the heap. Unlike Weak
pointers, a group of Wobbly
pointers shares one owning (strong) pointer that is released when the first Wobbly
of the group is dropped, and Wobbly
pointers can thus keep a value alive like std::rc::Rc
or std::sync::Arc
but can also break cycles by being a non-owning pointer like std::rc::Weak
or std::sync::Weak
.
Licensed under either of
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
wobbly
has been developed as part of ESiWACE3, the third phase of the Centre of Excellence in Simulation of Weather and Climate in Europe.
Funded by the European Union. This work has received funding from the European High Performance Computing Joint Undertaking (JU) under grant agreement No 101093054.