How can I apply my impl to several structs? Is there something similar to #[deriving] ?
Thanks Richard Gomes http://rgomes.info http://www.linkedin.com/in/rgomes mobile: +44(77)9955-6813 inum <http://www.inum.net/>: +883(5100)0800-9804 sip:[email protected] On 27/02/14 00:21, Corey Richardson wrote: > We already have this. You just need to implement Hasher. > > On Wed, Feb 26, 2014 at 7:14 PM, Tony Arcieri <[email protected]> wrote: >> On Wed, Feb 26, 2014 at 4:10 PM, Richard Gomes <[email protected]> >> wrote: >>> I suggest that the user should have the ability to chose the hash >>> algorithm to be employed among a repertoire of some available hash >>> algorithms or maybe an implementation of Hasher that the user decides to >>> create. >> >> I'd suggest the "default" hash function be hashDoS proof (since >> attacker-controlled data has the tendency to leak deep into programs), >> however a specifically performance-oriented hash/map (which isn't >> hashDoS/collision resistant) should be available for those who want to opt >> into it. >> >> -- >> Tony Arcieri >> >> _______________________________________________ >> Rust-dev mailing list >> [email protected] >> https://mail.mozilla.org/listinfo/rust-dev >>
_______________________________________________ Rust-dev mailing list [email protected] https://mail.mozilla.org/listinfo/rust-dev
