Struct lz_fnv::Fnv0 [] [src]

pub struct Fnv0<T> { /* fields omitted */ }

The FNV-0 hash.

This is deprecated except for computing the FNV offset basis for FNV-1 and FNV-1a hashes.

Methods

impl<T: Default> Fnv0<T>
[src]

[src]

Creates a new Fnv0<T>.

use lz_fnv::Fnv0;

let fnv_hasher = Fnv0::<u32>::new();

impl<T> Fnv0<T>
[src]

[src]

Creates a new Fnv0<T> with the specified key.

use lz_fnv::Fnv0;

let fnv_hasher = Fnv0::with_key(872u32);

Trait Implementations

impl<T: Debug> Debug for Fnv0<T>
[src]

[src]

Formats the value using the given formatter. Read more

impl<T: Default> Default for Fnv0<T>
[src]

[src]

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

impl FnvHasher for Fnv0<u32>
[src]

The type of the hash.

[src]

Completes a round of hashing, producing the output hash generated.

[src]

Writes some data into this Hasher.

impl FnvHasher for Fnv0<u64>
[src]

The type of the hash.

[src]

Completes a round of hashing, producing the output hash generated.

[src]

Writes some data into this Hasher.

impl Hasher for Fnv0<u64>
[src]

[src]

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

[src]

Writes some data into this Hasher. Read more

1.3.0
[src]

Writes a single u8 into this hasher.

1.3.0
[src]

Writes a single u16 into this hasher.

1.3.0
[src]

Writes a single u32 into this hasher.

1.3.0
[src]

Writes a single u64 into this hasher.

[src]

🔬 This is a nightly-only experimental API. (i128)

Writes a single u128 into this hasher.

1.3.0
[src]

Writes a single usize into this hasher.

1.3.0
[src]

Writes a single i8 into this hasher.

1.3.0
[src]

Writes a single i16 into this hasher.

1.3.0
[src]

Writes a single i32 into this hasher.

1.3.0
[src]

Writes a single i64 into this hasher.

[src]

🔬 This is a nightly-only experimental API. (i128)

Writes a single i128 into this hasher.

1.3.0
[src]

Writes a single isize into this hasher.

Auto Trait Implementations

impl<T> Send for Fnv0<T> where
    T: Send

impl<T> Sync for Fnv0<T> where
    T: Sync