Skip to main content

nebts

Macro nebts 

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

Like the crate::nes! macro, but for Binary Tree Sets.

use nonempty_collections::nebts;

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