[][src]Struct pihash::PIHash

#[repr(C)]
pub struct PIHash<'a> { /* fields omitted */ }

Methods

impl<'a> PIHash<'a>[src]

pub fn new(cache_path: Option<&'a str>) -> PIHash<'a>[src]

Create a new pihash library, and initialize a cache of a path is passed. If none is passed then no cache is initialized or used with the library

pub fn get_perceptual_hash(
    &self,
    path: &Path,
    precision: &Precision,
    hash_type: &HashType
) -> u64
[src]

pub fn get_phashes(&self, path: &'a Path) -> PerceptualHashes[src]

pub fn get_ahash(&self, path: &Path) -> u64[src]

pub fn get_dhash(&self, path: &Path) -> u64[src]

pub fn get_phash(&self, path: &Path) -> u64[src]

Auto Trait Implementations

impl<'a> Send for PIHash<'a>

impl<'a> Unpin for PIHash<'a>

impl<'a> Sync for PIHash<'a>

impl<'a> RefUnwindSafe for PIHash<'a>

impl<'a> UnwindSafe for PIHash<'a>

Blanket Implementations

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

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

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.

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

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

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

impl<T> SetParameter for T

fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
    T: Parameter<Self>, 

Sets value as a parameter of self.