std.hash.Hasher
trait pub HasherA type used for hashing objects.
A Hasher is a streaming hasher: instead of feeding it a single value and
receiving a hash right away, you write individual values to the Hasher.
Required methods
finish
Show source codeHide source code
fn pub move finish -> Intfn pub move finish -> IntReturns the hash for the values written so far.
write_byte
Show source codeHide source code
fn pub mut write_byte(value: Int)fn pub mut write_byte(value: Int)Writes a byte (an Int in the range of 0 up to and including 255) into
self.
If the value doesn't fit within the given range the hasher may produce a
poor or wrong hash. Use Hasher.write_int for such values.
write_int
Show source codeHide source code
fn pub mut write_int(value: Int)fn pub mut write_int(value: Int)Writes a regular Int into self.
Implementations
SipHasher13
impl Hasher for SipHasher13