Trait cow_dedupe::FileHash

source ·
pub trait FileHash<H>where
    H: FixedDigest,{
    // Required method
    fn hash<P: AsRef<Path>, F>(
        p: P,
        progress: F
    ) -> Result<[u8; <H::OutputSize>::USIZE]>
       where [u8; <H::OutputSize>::USIZE]: From<GenericArray<u8, H::OutputSize>>,
             F: Fn(usize);
}

Required Methods§

source

fn hash<P: AsRef<Path>, F>( p: P, progress: F ) -> Result<[u8; <H::OutputSize>::USIZE]>where [u8; <H::OutputSize>::USIZE]: From<GenericArray<u8, H::OutputSize>>, F: Fn(usize),

Implementors§