enum_ext 0.6.0

procedural macro that enhances enums with additional methods and conversions
Documentation
1
2
3
4
5
6
7
8
9
10
use std::fmt::Debug;

pub fn assert_iter_order3<T>(iter: impl Iterator<Item = &'static T>, expected: [&'static T; 3])
where
    T: PartialEq + Debug + 'static,
{
    for (i, v) in iter.enumerate() {
        assert_eq!(v, expected[i]);
    }
}