You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The EncodePtr trait may not be necessary. Currently, its main purpose is to express that reference/pointers to any NSObject may be encoded. This can partially be described using where clauses, like where *mut Self: Encode.
Unfortunately, this doesn't allow expressing where &'a Self: Encode because the lifetime is unconstrained, but working around this by casting to a pointer might not be so bad.
The main issue with this is rust-lang/rust#20671; even if a where clause is added to the INSObject trait, it doesn't propagate to subclasses.
The text was updated successfully, but these errors were encountered:
The
EncodePtr
trait may not be necessary. Currently, its main purpose is to express that reference/pointers to any NSObject may be encoded. This can partially be described using where clauses, likewhere *mut Self: Encode
.Unfortunately, this doesn't allow expressing
where &'a Self: Encode
because the lifetime is unconstrained, but working around this by casting to a pointer might not be so bad.The main issue with this is rust-lang/rust#20671; even if a where clause is added to the INSObject trait, it doesn't propagate to subclasses.
The text was updated successfully, but these errors were encountered: