Crate async_hash[][src]

Expand description

Provides traits Hash and HashCollection for SHA256 hashing of data that must be accessed asynchronously, e.g. a [Stream] or database table.

Hash is implemented for standard Rust types:

  • Primitive types:
    • bool
    • i8, i16, i32, i64, i128, isize
    • u8, u16, u32, u64, u128, usize
    • f32, f64
    • str
  • Compound types:
    • [T; 0] through [T; 32]
    • tuples up to size 16
  • Common standard library types:
    • Option<T>
    • Result<T, E>
    • PhantomData<T>
  • Other common types:
    • Bytes
  • Collection types:
    • BTreeMap<K, V>
    • BTreeSet<T>
    • BinaryHeap<T>
    • LinkedList<T>
    • VecDeque<T>
    • Vec<T>

Constants

The hash of an empty value such as () or Option::None.

Traits

Defines a standard hash for a scalar value.

Defines a standard hash for a mutable collection.

Type Definitions

A ordered [Stream] of the contents of a HashCollection.