summaryrefslogtreecommitdiffstats
path: root/third_party/rust/itertools-0.8.0/src/impl_macros.rs
blob: b41760aee8dee8d0f664ac30feb869ea9cb26bcd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! 
//! Implementation's internal macros

macro_rules! debug_fmt_fields {
    ($tyname:ident, $($($field:ident).+),*) => {
        fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
            f.debug_struct(stringify!($tyname))
                $(
              .field(stringify!($($field).+), &self.$($field).+)
              )*
              .finish()
        }
    }
}