reifydb-core 0.9.1

Core database interfaces and data structures for ReifyDB
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// SPDX-License-Identifier: Apache-2.0
// Copyright (c) 2026 ReifyDB

use std::{
	collections::hash_map::DefaultHasher,
	hash::{Hash, Hasher},
};

#[inline]
pub fn hash_item<T: Hash>(item: &T) -> u64 {
	let mut hasher = DefaultHasher::new();
	item.hash(&mut hasher);
	hasher.finish()
}