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 - Access directive function from component class or template -

php - Auto increment employee ID -

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