Struct umash_sys::umash_sink[][src]

#[repr(C)]
pub struct umash_sink { pub poly_state: [umash_sink__bindgen_ty_1; 2], pub buf: [c_char; 32], pub oh: *const u64, pub oh_iter: u32, pub bufsz: u8, pub block_size: u8, pub large_umash: bool, pub hash_wanted: u8, pub oh_acc: umash_sink_umash_oh, pub oh_twisted: umash_sink_umash_twisted_oh, pub seed: u64, }
Expand description

This struct holds the state for incremental UMASH hashing or fingerprinting.

A sink owns no allocation, and simply borrows a pointer to its umash_params. It can be byte-copied to snapshot its state.

The layout works best with alignment to 64 bytes, but does not require it.

Fields

poly_state: [umash_sink__bindgen_ty_1; 2]buf: [c_char; 32]oh: *const u64oh_iter: u32bufsz: u8block_size: u8large_umash: boolhash_wanted: u8oh_acc: umash_sink_umash_ohoh_twisted: umash_sink_umash_twisted_ohseed: u64

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

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

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.