[][src]Struct yadf::fs::hash::FsHasher

pub struct FsHasher<H: Hasher + Default>(_);

Implementations

impl<H> FsHasher<H> where
    H: Hasher + Default
[src]

pub fn partial<P: AsRef<Path>>(self, path: P) -> Result<u64>[src]

Get a checksum of the first 4 KiB (at most) of a file.

pub fn full<P: AsRef<Path>>(self, path: P) -> Result<u64>[src]

Get a complete checksum of a file.

Trait Implementations

impl<H: Clone + Hasher + Default> Clone for FsHasher<H>[src]

impl<H: Copy + Hasher + Default> Copy for FsHasher<H>[src]

impl<H: Hasher + Default> Default for FsHasher<H>[src]

Auto Trait Implementations

impl<H> RefUnwindSafe for FsHasher<H> where
    H: RefUnwindSafe

impl<H> Send for FsHasher<H> where
    H: Send

impl<H> Sync for FsHasher<H> where
    H: Sync

impl<H> Unpin for FsHasher<H> where
    H: Unpin

impl<H> UnwindSafe for FsHasher<H> where
    H: UnwindSafe

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,