macro_rules! implement {
    (
        impl $ty:ty {
            $(
                $trait:ident {
                    $($trait_def:tt)*
                }
            )+
        }

        $($tail:tt)*
    ) => { ... };
    (
        impl $trait:ident for $ty:ty {
            $($trait_def:tt)*
        }

        $($tail:tt)*
    ) => { ... };
    (
        impl $ty:ty, with $ty_args:tt {
            $(
                $trait:ident {
                    $($trait_def:tt)*
                }
            )+
        }

        $($tail:tt)*
    ) => { ... };
    (
        impl $ty_args:tt $trait:ident for $ty:ty {
            $($trait_def:tt)*
        }

        $($tail:tt)*
    ) => { ... };
    () => { ... };
}
Expand description

Convenience macro for implementing basic traits.

Supports Display, From, Into, Deref, DerefMut.