Search results

There are no results.

std.hash.Hasher

trait pub Hasher

A 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 code
Hide source code
fn pub move finish -> Int
fn pub move finish -> Int

Returns the hash for the values written so far.

write_byte

Show source code
Hide 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 code
Hide source code
fn pub mut write_int(value: Int)
fn pub mut write_int(value: Int)

Writes a regular Int into self.

Implementations

std.hash.siphash.

SipHasher13

impl Hasher for SipHasher13