macro_rules! set {
    (@to_unit $($_:tt)*) => { ... };
    (@count $($tail:expr),*) => { ... };
    {$($v: expr),* $(,)?} => { ... };
}
Expand description

Macro for creating a set.

Equivalent to the vec! macro for vectors. Set this crate’s documentation for more examples on how to use this macro.

Example:

use map_macro::set;

let x = set! { 1, 2, 3, 3, 4 };

assert_eq!(x.len(), 4);