swift - `where` equivalent in type declaration -


i want declare associatedtype conforms protocol specific property, namely rawrepresentable self.rawvalue == string.

this got far.

protocol statefulview: class {   associatedtype statetype: rawrepresentable, hashable } 

but it's not precise enough. need where clause, where put it?


Comments

Popular posts from this blog

javascript - Thinglink image not visible until browser resize -

firebird - Error "invalid transaction handle (expecting explicit transaction start)" executing script from Delphi -

mongodb - How to keep track of users making Stripe Payments -