Struct twox_hash::XxHash32[][src]

pub struct XxHash32 { /* fields omitted */ }

Calculates the 32-bit hash. Care should be taken when using this hash.

Although this struct implements Hasher, it only calculates a 32-bit number, leaving the upper bits as 0. This means it is unlikely to be correct to use this in places like a HashMap.

Methods

impl XxHash
[src]

Constructs the hash with an initial seed

Trait Implementations

impl Debug for XxHash
[src]

Formats the value using the given formatter. Read more

impl Copy for XxHash
[src]

impl Clone for XxHash
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Default for XxHash
[src]

Returns the "default value" for a type. Read more

impl Hasher for XxHash
[src]

Writes some data into this Hasher. Read more

Returns the hash value for the values written so far. Read more

Writes a single u8 into this hasher.

Writes a single u16 into this hasher.

Writes a single u32 into this hasher.

Writes a single u64 into this hasher.

Writes a single u128 into this hasher.

Writes a single usize into this hasher.

Writes a single i8 into this hasher.

Writes a single i16 into this hasher.

Writes a single i32 into this hasher.

Writes a single i64 into this hasher.

Writes a single i128 into this hasher.

Writes a single isize into this hasher.

Auto Trait Implementations

impl Send for XxHash32

impl Sync for XxHash32