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
It would also be nice to be able to pass in the hash/eq fns using ifaces, like:
// somewhere in core
iface eq { fn eq (a: self) -> bool; }
iface hash { fn hash () -> uint; }
// a set module constructor
fn mk_set <V:eq hash copy> () -> set<V> { ... }
// to construct a set of some type with eq and hash in scope:
let s = set::mk_set();
s.insert(...);
Actually the same thing would be nice for maps, too.
Activity
Dretch commentedon Jun 20, 2012
It would also be nice to be able to pass in the hash/eq fns using ifaces, like:
Actually the same thing would be nice for maps, too.
catamorphism commentedon Jun 21, 2012
@Dretch That would be good, yes.
catamorphism commentedon Jan 20, 2013
b86c90b is a start towards this, but the usual set operations still need to be added.
catamorphism commentedon Jan 30, 2013
b927e48 closes this. Thanks, @thestinger !
Auto merge of rust-lang#2640 - Rageking8:fix-dupe-word-typos, r=saethlin
Auto merge of rust-lang#2640 - Rageking8:fix-dupe-word-typos, r=saethlin
Merge pull request rust-lang#2640 from jdonszelmann/try-parent-and-ma…
Merge rust-lang#2640