extxyz-ng 0.0.2

extended XYZ parser (extxyz)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use std::fs;

use extxyz::read_frames;

fn main() {
    let path = concat!(env!("CARGO_MANIFEST_DIR"), "/examples/32768_frames.xyz");
    let file = fs::File::open(path).expect("Failed to read file");
    let mut rd = std::io::BufReader::new(file);

    let frames = read_frames(&mut rd);
    dbg!(frames.count());
}