We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 44a5cce commit b5d2cc5Copy full SHA for b5d2cc5
crates/react/src/safe_into_js/closure.rs
@@ -26,6 +26,18 @@ impl<F: ?Sized> WrapFn<F, ()> {
26
}
27
28
29
+impl<F: ?Sized, TArgs> Clone for WrapFn<F, TArgs> {
30
+ fn clone(&self) -> Self {
31
+ Self(self.0.clone(), PhantomData)
32
+ }
33
+}
34
+
35
+impl<F: ?Sized, TArgs> std::fmt::Debug for WrapFn<F, TArgs> {
36
+ fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
37
+ write!(f, "WrapFn<{}>", std::any::type_name::<F>())
38
39
40
41
impl<F> WrapFnMut<F, ()> {
42
#[inline]
43
pub fn new<A>(func: F) -> WrapFnMut<F, A>
0 commit comments