]>
git.proxmox.com Git - rustc.git/blob - vendor/itertools/src/impl_macros.rs
2 //! Implementation's internal macros
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
))
9 .field(stringify
!($
($field
).+), &self.$
($field
).+)
16 macro_rules
! clone_fields
{
17 ($
($field
:ident
),*) => {
18 fn clone(&self) -> Self {
20 $
($field
: self.$field
.clone(),)*
26 macro_rules
! ignore_ident
{
27 ($id
:ident
, $
($t
:tt
)*) => {$($t)*}
;