moving_gc_arena 0.3.2

Lightweight Garbage-collectable regions using indices and explicit roots
Documentation
/*
 * @Copyright 2020 Jason Carr
 *
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
 */

use core::sync::atomic::{AtomicU64, Ordering};

static NONCE: AtomicU64 = AtomicU64::new(0);

pub(crate) fn next() -> u64 {
    NONCE.fetch_add(1, Ordering::AcqRel)
}