Expand description
Reference-counted pointers with shared ownership and unwrapping capabilities.
§Examples
use fp_library::{brands::*, functions::*};
let ptr = ref_counted_pointer_new::<RcBrand, _>(42);
let clone = ptr.clone();
assert_eq!(*clone, 42);Traits§
- RefCounted
Pointer - Extension trait for reference-counted pointers with shared ownership.
Functions§
- cloneable_
new - Wraps a sized value in a cloneable pointer.
- try_
unwrap - Attempts to unwrap the inner value if this is the sole reference.