We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 83ae3fa commit 437fbdaCopy full SHA for 437fbda
src/lifetime_free.rs
@@ -83,6 +83,27 @@ unsafe impl<T: LifetimeFree> LifetimeFree for core::num::Wrapping<T> {}
83
unsafe impl<T: LifetimeFree> LifetimeFree for core::cell::Cell<T> {}
84
unsafe impl<T: LifetimeFree> LifetimeFree for core::cell::RefCell<T> {}
85
86
+macro_rules! tuple_impls {
87
+ ($( $( $name:ident )+, )+) => {
88
+ $(
89
+ unsafe impl<$($name: LifetimeFree),+> LifetimeFree for ($($name,)+) {}
90
+ )+
91
+ };
92
+}
93
+
94
+tuple_impls! {
95
+ T0,
96
+ T0 T1,
97
+ T0 T1 T2,
98
+ T0 T1 T2 T3,
99
+ T0 T1 T2 T3 T4,
100
+ T0 T1 T2 T3 T4 T5,
101
+ T0 T1 T2 T3 T4 T5 T6,
102
+ T0 T1 T2 T3 T4 T5 T6 T7,
103
+ T0 T1 T2 T3 T4 T5 T6 T7 T8,
104
+ T0 T1 T2 T3 T4 T5 T6 T7 T8 T9,
105
106
107
#[cfg(feature = "std")]
108
mod std_impls {
109
use super::LifetimeFree;
0 commit comments