endian-hasher

Crates.ioendian-hasher
lib.rsendian-hasher
version0.1.1
sourcesrc
created_at2016-11-30 12:46:07.10266
updated_at2016-11-30 12:49:15.339219
descriptionEndianness wrapper for Hashers
homepagehttps://github.com/burdges/endian-hasher
repositoryhttps://github.com/burdges/endian-hasher.git
max_upload_size
id7413
size3,934
Jeff Burdges (burdges)

documentation

README

This crate provides wrappers for Hasher that change the endianness used when hashing primitive numeric types.

Installation

This crate works with Cargo and is on crates.io. Add it to your Cargo.toml with:

[dependencies]
endianhasher = "0.1"

Use the crate like:

extern crate endian_hasher;

use std::hash::{Hasher, SipHasher24};

use endianhasher::{HasherToLE, HasherToBE};

let mut h1 = HasherToLE(SipHasher24::new_with_keys(k0,k1));
-3i64.hash(&mut h1);
h1.finish()
Commit count: 9

cargo fmt