Crates.io | process-owned |
lib.rs | process-owned |
version | 0.2.0 |
source | src |
created_at | 2023-05-07 07:58:11.396667 |
updated_at | 2023-05-07 10:02:25.786116 |
description | Assign ownership of a value to the process itself |
homepage | https://github.com/carlosskii/process-owned |
repository | https://github.com/carlosskii/process-owned |
max_upload_size | |
id | 859003 |
size | 7,605 |
This Rust crate provides easy access to multiple owners. Using the ProcessOwned
struct, multiple owners can share the same data source. Internally, this uses an Rc
, but the implementation will be modified for speed.
When paired with the lazy_static
crate, this can be used to create a global data source that can be accessed from anywhere in the program.
use process_owned::ProcessOwned;
let mut data = ProcessOwned::new(0);
assert_eq!(*data, 0);
This crate is licensed under the MIT license due to its extremely small size. See the LICENSE
file for more information.