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]
Trait Implementations
impl Copy for Hash
[src]
impl Clone for Hash
[src]
fn clone(&self) -> Hash
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Hash for Hash
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl PartialEq for Hash
[src]
fn eq(&self, __arg_0: &Hash) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Hash) -> bool
This method tests for !=
.
impl Eq for Hash
[src]
impl PartialOrd for Hash
[src]
fn partial_cmp(&self, __arg_0: &Hash) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, __arg_0: &Hash) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, __arg_0: &Hash) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, __arg_0: &Hash) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, __arg_0: &Hash) -> bool
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]
fn cmp(&self, __arg_0: &Hash) -> Ordering
This method returns an Ordering
between self
and other
. Read more
impl Debug for Hash
[src]
impl Into<u64> for Hash
[src]
Get the inner hash value.
impl Sub for Hash
[src]
Calculate the difference of two hashes.
type Output = Difference
The resulting type after applying the -
operator
fn sub(self, rhs: Hash) -> Difference
The method for the -
operator