filecount 0.1.0

A modern high-performance open source file analysis library for automating localization tasks.
Documentation
1
2
3
4
5
6
7
8
9
use std::hash::{Hash, Hasher};
use std::collections::hash_map::DefaultHasher;

/// Used to hash segments into hashments.
pub fn hash(s: &str) -> u64 {
    let mut hasher = DefaultHasher::new();
    s.hash(&mut hasher);
    hasher.finish()
}