Function edres::generate_enum_from_filenames
source · [−]pub fn generate_enum_from_filenames<DirPath: AsRef<Path>, Name: AsRef<str>>(
dir_path: DirPath,
enum_name: Name,
options: &Options
) -> Result<String, Error>
Expand description
Generate Rust code that defines an enum based on the file names within the given directory.