Struct highway::HighwayBuilder[][src]

pub struct HighwayBuilder(_);

Main HighwayHash implementation that delegates to one of the other implementations depending on the target compiled for and a runtime CPU check.

In order of preference:

  • AvxHash
  • SseHash
  • PortableHash

Methods

impl HighwayBuilder
[src]

Creates a new hasher based on compilation and runtime capabilities

Trait Implementations

impl Debug for HighwayBuilder
[src]

Formats the value using the given formatter. Read more

impl HighwayHash for HighwayBuilder
[src]

Convenience function for hashing all data in a single call and receiving a 64bit hash. Results are equivalent to appending the data manually. Read more

Convenience function for hashing all data in a single call and receiving a 128bit hash. Results are equivalent to appending the data manually. Read more

Convenience function for hashing all data in a single call and receiving a 256bit hash. Results are equivalent to appending the data manually. Read more

Adds data to be hashed. If it is important, the performance characteristics of this function differs depending on the amount of data previously hashed and the amount of data to be hashed. For instance, if one appends 50, 1 byte slices then appending the 32nd byte will have a performance outlier as the internal 32 byte block is complete and internally processed. Read more

Consumes the hasher to return the 64bit hash

Consumes the hasher to return the 128bit hash

Consumes the hasher to return the 256bit hash

Auto Trait Implementations