Macro safe_index::new[][src]

macro_rules! new {
    ( @internal $t:ident, $(#[$cmt:meta])* btree set: $set:ident $($tail:tt)* ) => { ... };
    ( @internal $t:ident, $(#[$cmt:meta])* btree map: $map:ident $($tail:tt)* ) => { ... };
    ( @internal $t:ident, $(#[$cmt:meta])* range: $range:ident $($tail:tt)* ) => { ... };
    (
        @internal $t:ident, $(#[$cmt:meta])*
        map: $map:ident with iter: $iter:ident
        $($tail:tt)*
    ) => { ... };
    ( @internal $t:ident $(,)? ) => { ... };
    (
        $(#[$cmt:meta])* $t:ident
        $($tail:tt)*
    ) => { ... };
}

Wraps a usize into a struct (zero-cost). Also generates the relevant collections indexed by the wrapper.

See the module-level documentation for more.