rclite 0.4.1

small, fast, and memory-friendly reference counting compatible with Arc and Rc APIs
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use rclite::Rc;

#[test]
fn simple() {
    let a = Rc::new(!0usize);
    drop(a);
}

#[test]
fn cloned() {
    let a = Rc::new(!0usize);
    let _b = a.clone();
    let _c = a.clone();
    let _d = a;
}