usestd::mem::size_of;usestd::path::{Path, PathBuf};pubconstVERSION_MAPPING_FILE_NAME:&str="id_tracker.versions";pub(crate)fnversion_mapping_path(base:&Path)-> PathBuf{
base.join(VERSION_MAPPING_FILE_NAME)}/// Returns the required mmap filesize for a given length of a slice of type `T`.
pub(super)fnmmap_size<T>(len:usize)->usize{let item_width =size_of::<T>();
len.div_ceil(item_width)* item_width // Make it a multiple of usize-width.
}