diff options
| author | Laurenz <laurmaedje@gmail.com> | 2019-11-06 23:03:04 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2019-11-06 23:18:48 +0100 |
| commit | 271af7ed0308c9eca7da5dce93d52d38be84889f (patch) | |
| tree | bba0411f9eb7c2db005224d9f8293a00c00b56b4 /src/macros.rs | |
| parent | 110e4b9cb9dcbe590d345d8883f0c5f111752f1c (diff) | |
Parse keyword arguments 📋
Diffstat (limited to 'src/macros.rs')
| -rw-r--r-- | src/macros.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/macros.rs b/src/macros.rs index 9fba1d59..70c67105 100644 --- a/src/macros.rs +++ b/src/macros.rs @@ -49,4 +49,11 @@ macro_rules! debug_display { } } ); + ($type:ident; $generics:tt where $($bounds:tt)*) => ( + impl<$generics> std::fmt::Debug for $type<$generics> where $($bounds)* { + fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { + std::fmt::Display::fmt(self, f) + } + } + ); } |
