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 -

python - Evaluating the next line in a For Loop while in the current iteration -