File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change
1
+ use std:: any:: Any ;
2
+
1
3
use objc:: Message ;
2
4
use objc:: runtime:: { BOOL , Class , NO } ;
3
5
use objc_id:: { Id , ShareId } ;
@@ -10,7 +12,7 @@ use NSString;
10
12
pointer to an Object pointer, because dynamically-sized types can have fat
11
13
pointers (two words) instead of real pointers.
12
14
*/
13
- pub trait INSObject : ' static + Sized + Message {
15
+ pub trait INSObject : Any + Sized + Message {
14
16
fn class ( ) -> & ' static Class ;
15
17
16
18
fn hash_code ( & self ) -> usize {
Original file line number Diff line number Diff line change
1
+ use std:: any:: Any ;
1
2
use std:: ffi:: { CStr , CString } ;
2
3
use std:: marker:: PhantomData ;
3
4
use std:: mem;
@@ -49,17 +50,17 @@ pub struct NSValue<T> {
49
50
50
51
object_impl ! ( NSValue <T >) ;
51
52
52
- impl < T > INSObject for NSValue < T > where T : ' static {
53
+ impl < T > INSObject for NSValue < T > where T : Any {
53
54
fn class ( ) -> & ' static Class {
54
55
Class :: get ( "NSValue" ) . unwrap ( )
55
56
}
56
57
}
57
58
58
- impl < T > INSValue for NSValue < T > where T : ' static + Copy + Encode {
59
+ impl < T > INSValue for NSValue < T > where T : Any + Copy + Encode {
59
60
type Value = T ;
60
61
}
61
62
62
- impl < T > INSCopying for NSValue < T > where T : ' static {
63
+ impl < T > INSCopying for NSValue < T > where T : Any {
63
64
type Output = NSValue < T > ;
64
65
}
65
66
You can’t perform that action at this time.
0 commit comments