index_vec 0.0.1-alpha

Like `Vec` and `usize`, but with more type safety
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! This module is just for documentation purposes, and is hidden behind the
//! `example_generated` feature, which is off by default.

pub mod wraps_u32 {
    define_index_type! {
        /// Example documentation for the type
        pub struct Idx32(u32);
    }
}

pub mod wraps_usize {
    define_index_type! {
        /// Example documentation for the type.
        pub struct IdxSize(usize);
        DEFAULT = IdxSize(0);
    }
}