Sha256: 97fc5f39574805e0c220aa462cf1ae7dcac5c1082d6ee5500e7d71c120db5f88

Contents?: true

Size: 859 Bytes

Versions: 13

Compression:

Stored size: 859 Bytes

Contents

//!
//! Implementation's internal macros

macro_rules! debug_fmt_fields {
    ($tyname:ident, $($($field:tt/*TODO ideally we would accept ident or tuple element here*/).+),*) => {
        fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
            f.debug_struct(stringify!($tyname))
                $(
              .field(stringify!($($field).+), &self.$($field).+)
              )*
              .finish()
        }
    }
}

macro_rules! clone_fields {
    ($($field:ident),*) => {
        #[inline] // TODO is this sensible?
        fn clone(&self) -> Self {
            Self {
                $($field: self.$field.clone(),)*
            }
        }
    }
}

macro_rules! ignore_ident{
    ($id:ident, $($t:tt)*) => {$($t)*};
}

macro_rules! count_ident {
    () => {0};
    ($i0:ident $($i:ident)*) => {1 + count_ident!($($i)*)};
}

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
wasmtime-29.0.0 ./ext/cargo-vendor/itertools-0.12.1/src/impl_macros.rs
wasmtime-28.0.0 ./ext/cargo-vendor/itertools-0.12.1/src/impl_macros.rs
wasmtime-27.0.0 ./ext/cargo-vendor/itertools-0.12.1/src/impl_macros.rs
wasmtime-26.0.0 ./ext/cargo-vendor/itertools-0.12.1/src/impl_macros.rs
wasmtime-25.0.2 ./ext/cargo-vendor/itertools-0.12.1/src/impl_macros.rs
wasmtime-25.0.1 ./ext/cargo-vendor/itertools-0.12.1/src/impl_macros.rs
wasmtime-25.0.0 ./ext/cargo-vendor/itertools-0.12.1/src/impl_macros.rs
wasmtime-24.0.0 ./ext/cargo-vendor/itertools-0.12.1/src/impl_macros.rs
wasmtime-23.0.2 ./ext/cargo-vendor/itertools-0.12.1/src/impl_macros.rs
wasmtime-22.0.0 ./ext/cargo-vendor/itertools-0.12.1/src/impl_macros.rs
wasmtime-21.0.1 ./ext/cargo-vendor/itertools-0.12.1/src/impl_macros.rs
wasmtime-20.0.2 ./ext/cargo-vendor/itertools-0.12.1/src/impl_macros.rs
wasmtime-20.0.0 ./ext/cargo-vendor/itertools-0.12.1/src/impl_macros.rs