Struct eudex::Hash [] [src]

pub struct Hash { /* fields omitted */ }

A phonetic hash.

Using the Sub implementation of the hashes will give you the difference.

Methods

impl Hash
[src]

Phonetically hash this string.

Examples

use eudex::Hash;

println!("{:?}", Hash::new("lulz"));

Trait Implementations

impl Copy for Hash
[src]

impl Clone for Hash
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Hash for Hash
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl PartialEq for Hash
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for Hash
[src]

impl PartialOrd for Hash
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Ord for Hash
[src]

This method returns an Ordering between self and other. Read more

impl Debug for Hash
[src]

Formats the value using the given formatter.

impl Into<u64> for Hash
[src]

Get the inner hash value.

Performs the conversion.

impl Sub for Hash
[src]

Calculate the difference of two hashes.

The resulting type after applying the - operator

The method for the - operator