pub trait HammingDistance<RHS = Self> {
    fn hamming_distance(self, other: RHS) -> u64;
}
Expand description

Returns the Hamming distance between two numbers, or the number of bit flips needed to turn one into the other.

Required Methods

Implementations on Foreign Types

Returns the Hamming distance between two numbers, or the number of bit flips needed to turn one into the other.

Worst-case complexity

Constant time and additional memory.

Examples

See here.

Returns the Hamming distance between two numbers, or the number of bit flips needed to turn one into the other.

Worst-case complexity

Constant time and additional memory.

Examples

See here.

Returns the Hamming distance between two numbers, or the number of bit flips needed to turn one into the other.

Worst-case complexity

Constant time and additional memory.

Examples

See here.

Returns the Hamming distance between two numbers, or the number of bit flips needed to turn one into the other.

Worst-case complexity

Constant time and additional memory.

Examples

See here.

Returns the Hamming distance between two numbers, or the number of bit flips needed to turn one into the other.

Worst-case complexity

Constant time and additional memory.

Examples

See here.

Returns the Hamming distance between two numbers, or the number of bit flips needed to turn one into the other.

Worst-case complexity

Constant time and additional memory.

Examples

See here.

Implementors