[−][src]Struct pihash::PIHash
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]
&self,
path: &Path,
precision: &Precision,
hash_type: &HashType
) -> u64
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]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
T: Parameter<Self>,
Sets value
as a parameter of self
.