pub fn generate_file_name<P>(parent_dir: P, base_offset: Offset, extension: &str) -> PathBuf
where
    P: AsRef<Path>,
{
    let mut file = parent_dir.as_ref().join(format!("{:020}", base_offset));
    file.set_extension(extension);
    file
}
/// given parent directory, base offset, extension, generate path
given parent directory, base offset, extension, generate path
given parent directory base offset extension generate path
pub fn generate_file_name<P>(parent_dir: P, base_offset: Offset, extension: &str) -> PathBuf
where
    P: AsRef<Path>,
{
    let mut file = parent_dir.as_ref().join(format!("{:020}", base_offset));
    file.set_extension(extension);
    file
}
pub fn generate_file_name < P > ( parent_dir : P , base_offset : Offset , extension : & str ) -> PathBuf where P : AsRef < Path > , { let mut file = parent_dir . as_ref ( ) . join ( format ! ( " " base_offset ) ) ; file . set_extension ( extension ) ; file }
given parent directory, base offset, extension, generate path
given parent directory base offset extension generate path
parent_dir
P
base_offset
Offset
extension
&str
parent_dir
P
base_offset
Offset
extension
&str