Skip to main content

neis

Macro neis 

Source
macro_rules! neis {
    ($h:expr, $( $x:expr ),* $(,)?) => { ... };
    ($h:expr) => { ... };
}
Expand description

Like the crate::nes! macro, but for IndexSets.

use nonempty_collections::neis;

let s = neis![1, 2, 2, 3,];
assert_eq!(3, s.len().get());