iced_core/hasher.rs
1/// The hasher used to compare layouts.
2#[allow(missing_debug_implementations)] // Doesn't really make sense to have debug on the hasher state anyways.
3#[derive(Default)]
4pub struct Hasher(rustc_hash::FxHasher);
5
6impl core::hash::Hasher for Hasher {
7 fn write(&mut self, bytes: &[u8]) {
8 self.0.write(bytes);
9 }
10
11 fn finish(&self) -> u64 {
12 self.0.finish()
13 }
14}