blob: 28fe0c9d8e78b3bdcfd7487c2a16ac0895c3de9c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
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);
}
}
|