//! Example for `ScatteredSortedReferencedSlice`.
use scattered_collect::{gather, scatter, sorted_referenced_slice::ScatteredSortedReferencedSlice};

/// A scattered sorted referenced slice of `u32`.
#[gather]
static COLLECTION: ScatteredSortedReferencedSlice<u32>;

#[scatter(COLLECTION)]
static ITEM_ONE: u32 = 1;

#[scatter(COLLECTION)]
static ITEM_TWO: u32 = 2;

#[scatter(COLLECTION)]
static ITEM_THREE: u32 = 3;

fn main() {
    println!("COLLECTION: {:?}", &*COLLECTION);
    println!("ITEM_ONE: {}", *ITEM_ONE);
}
