uniffi_meta

Function checksum

Source
pub fn checksum<T: Checksum>(val: &T) -> u16
Expand description

Returns the last 16 bits of the value’s hash as computed with [SipHasher13].

This is used as a safeguard against different UniFFI versions being used for scaffolding and bindings generation.