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

php - Auto increment employee ID -

php - isset function not working properly -

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