unsafe_cell_slice 0.2.2

A microlibrary for creating multiple mutable references to a slice
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
pub const N_REPETITIONS: i64 = 1_000;

pub fn decr(data: &mut i64) {
    for _ in 0..N_REPETITIONS {
        *data -= 1;
    }
}

pub fn incr(data: &mut i64) {
    for _ in 0..N_REPETITIONS {
        *data += 1;
    }
}