Expand description
Modules§
Functions§
- checksum_
on_ disk_ or_ mmap - Calculate the hash of the given kind by trying to read the file from disk at
data_pathor falling back on the mapped content indata.Ok(desired_hash)orErr(Some(actual_hash))is returned if the hash matches or mismatches. If theErr(None)is returned, the operation was interrupted. - fan
- Returns the
indexat which the followingindex + 1value is not an increment over the value atindex.