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
savv hello. I am trying to figure out why SipHasher::write appears to be private, whereas ::finish is not: http://is.gd/cjwAvO
savv Even though they both seem to be the same in terms of public-ness: https://doc.rust-lang.org/src/core/hash/sip.rs.html#174-200
eibwen savv: it's because it has an inherent method of the same name
eibwen savv: you need to call it via Hasher::write(&mut hasher, &x)
eibwen you're welcome. you could open an issue about that
The text was updated successfully, but these errors were encountered:
eibwen savv: the problem is that SipHasher also defines its own "write" method, which is private
eibwen savv: since that is an inherent method, it is preferred to a trait method, even though you can't access it
savv
changed the title
SipHasher::write incorrectly marked as private
SipHasher::write, when used externally, should refer to trait method, not inherent (and private) method.
Sep 12, 2015
This code snippet works: http://is.gd/cAKwYz
However, substituting
::Hasher
for::SipHasher
gives the following error:Discussion from IRC:
The text was updated successfully, but these errors were encountered: