[][src]Struct gear_fingerprinter::Fingerprint

pub struct Fingerprint {
    pub fingerprint: [u32; 24],
}

Fields

fingerprint: [u32; 24]

Implementations

impl Fingerprint[src]

pub const MAX_SIMILARITY_SCORE: u32[src]

pub fn similarity_score(self, other: Self) -> u32[src]

Compares two fingerprints, and returns a similarity score in the range of 0 to MAX_SIMILARITY_SCORE, with 0 being "Not similar at all".

pub fn similarity_score_ratio(self, other: Self) -> f32[src]

Compares two fingerprints, and returns a similarity score in the range of 0.0 to 1.0, with 0 being "not similar at all" and 1 being "extremely similar"

Trait Implementations

impl Clone for Fingerprint[src]

impl Copy for Fingerprint[src]

impl Debug for Fingerprint[src]

impl Eq for Fingerprint[src]

impl PartialEq<Fingerprint> for Fingerprint[src]

impl StructuralEq for Fingerprint[src]

impl StructuralPartialEq for Fingerprint[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.