algosul_core/codegen/
fs.rs

1use std::{error::Error, path::Path};
2
3pub trait FromPath: Sized {
4    type Error: Error;
5    fn from_path(path: impl AsRef<Path>) -> Result<Self, Self::Error>;
6}
7// impl FromPath for ItemMod {
8//     type Error = io::Error;
9//
10//     fn from_path(path: impl AsRef<Path>) -> Result<Self, Self::Error> {
11//         let item =
12//         for entry in read_dir(path)? {
13//             let entry = entry?;
14//
15//         }
16//         Ok(())
17//     }
18// }