process-owned 0.2.0

Assign ownership of a value to the process itself
Documentation
  • Coverage
  • 100%
    7 out of 7 items documented3 out of 6 items with examples
  • Size
  • Source code size: 7.6 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 335.06 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 8s Average build duration of successful builds.
  • all releases: 8s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • carlosskii/process-owned
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • carlosskii

process-owned

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.

Example

use process_owned::ProcessOwned;

let mut data = ProcessOwned::new(0);
assert_eq!(*data, 0);

License

This crate is licensed under the MIT license due to its extremely small size. See the LICENSE file for more information.