pub struct Djb2Hasher;Expand description
Default hasher: DJB2 for all files + PNG IHDR+IDAT semantic hash.
file_hash: DJB2 of entire file bytes (%016x).content_hash: For PNG files, DJB2 of IHDR+IDAT chunks (%016x). Produces the same hash as Lua’spng.image_hash().
Trait Implementations§
Source§impl ContentHasher for Djb2Hasher
impl ContentHasher for Djb2Hasher
Source§fn hash_file(&self, path: &Path) -> Result<HashResult, InfraError>
fn hash_file(&self, path: &Path) -> Result<HashResult, InfraError>
Compute hashes for the given file. Read more
Auto Trait Implementations§
impl Freeze for Djb2Hasher
impl RefUnwindSafe for Djb2Hasher
impl Send for Djb2Hasher
impl Sync for Djb2Hasher
impl Unpin for Djb2Hasher
impl UnsafeUnpin for Djb2Hasher
impl UnwindSafe for Djb2Hasher
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more