]> git.proxmox.com Git - rustc.git/blob - vendor/itertools-0.7.8/src/impl_macros.rs
New upstream version 1.41.1+dfsg1
[rustc.git] / vendor / itertools-0.7.8 / src / impl_macros.rs
1 //!
2 //! Implementation's internal macros
3
4 macro_rules! debug_fmt_fields {
5 ($tyname:ident, $($($field:ident).+),*) => {
6 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7 f.debug_struct(stringify!($tyname))
8 $(
9 .field(stringify!($($field).+), &self.$($field).+)
10 )*
11 .finish()
12 }
13 }
14 }