File tree Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,17 @@ pub struct OldOutputPin<T> {
11
11
pin : T ,
12
12
}
13
13
14
+ impl < T , ERR > OldOutputPin < T >
15
+ where
16
+ T : v2:: OutputPin < Error =ERR > ,
17
+ ERR : core:: fmt:: Debug ,
18
+ {
19
+ /// Create a new OldOutputPin wrapper around a v2::OutputPin
20
+ pub fn new ( pin : T ) -> Self {
21
+ Self { pin}
22
+ }
23
+ }
24
+
14
25
impl < T , ERR > From < T > for OldOutputPin < T >
15
26
where
16
27
T : v2:: OutputPin < Error =ERR > ,
@@ -60,6 +71,18 @@ pub struct OldInputPin<T> {
60
71
pin : T ,
61
72
}
62
73
74
+ #[ cfg( feature = "unproven" ) ]
75
+ impl < T , ERR > OldInputPin < T >
76
+ where
77
+ T : v2:: OutputPin < Error =ERR > ,
78
+ ERR : core:: fmt:: Debug ,
79
+ {
80
+ /// Create an OldInputPin wrapper around a v2::InputPin
81
+ pub fn new ( pin : T ) -> Self {
82
+ Self { pin}
83
+ }
84
+ }
85
+
63
86
#[ cfg( feature = "unproven" ) ]
64
87
impl < T , ERR > From < T > for OldInputPin < T >
65
88
where
You can’t perform that action at this time.
0 commit comments