Module send_ref_counted_pointer

Module send_ref_counted_pointer 

Source
Expand description

A trait for thread-safe reference-counted pointers.

§Examples

use fp_library::{brands::*, functions::*};

let ptr = send_ref_counted_pointer_new::<ArcBrand, _>(42);
assert_eq!(*ptr, 42);

Traits§

SendRefCountedPointer
Extension trait for thread-safe reference-counted pointers.

Functions§

send_new
Wraps a sized value in a thread-safe pointer.