mod context; mod picture; mod piece; use context::Context; use picture::Picture; use piece::Piece; fn main() { println!("Hello, world!"); let ctx = Context::new_with_args().unwrap(); for file in ctx.get_image_files().unwrap() { println!("{}", file.display()); let pic = Picture::new_from_file(&file).unwrap(); println!("{:?}", pic); let piece = Piece::new(&ctx, pic).unwrap(); println!("{:?}", piece); } }