#[repr(i32)]pub enum Hash {
InternalHash = 1,
Phash2 = 2,
}Expand description
The hash algorithm selector for hash.
Chooses between a fast non-portable internal hash and the portable phash2
that matches erlang:phash2/1.
ErlNifHash — NIF 2.12 — OTP 20
Variants§
InternalHash = 1
Non-portable internal hash; fast, but may change between ERTS versions.
ERL_NIF_INTERNAL_HASH — NIF 2.12 — OTP 20
Phash2 = 2
Portable phash2 hash, matching erlang:phash2/1.
ERL_NIF_PHASH2 — NIF 2.12 — OTP 20
Trait Implementations§
impl Copy for Hash
impl Eq for Hash
impl StructuralPartialEq for Hash
Auto Trait Implementations§
impl Freeze for Hash
impl RefUnwindSafe for Hash
impl Send for Hash
impl Sync for Hash
impl Unpin for Hash
impl UnsafeUnpin for Hash
impl UnwindSafe for Hash
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more