gloss-utils 0.9.0

Small library for utility functions in gloss
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// use core::iter::once;

// /// Iterate over tuples
// /// https://stackoverflow.com/a/58349663
// macro_rules! chained_elements {
//     ($exp: expr) => {
//         core::iter::once($exp as _)
//     };
//     ($exp: expr, $($rest:tt)*) => {
//         core::iter::once($exp as _)
//         .chain(chained_elements!($($rest)*))
//     }
// }
// pub fn mut_tuple_to_iter(v: &mut ((), i32)) -> impl Iterator<Item = &mut dyn D> {
//     chained_elements!(&mut v.0, &mut v.1)
// }