chemfiles

Crates.iochemfiles
lib.rschemfiles
version0.10.41
sourcesrc
created_at2015-10-30 15:02:19.839703
updated_at2024-02-15 10:40:12.384626
descriptionModern library for chemistry trajectories reading and writing
homepagehttp://chemfiles.org/
repositoryhttps://github.com/chemfiles/chemfiles.rs
max_upload_size
id3336
size193,814
Guillaume Fraux (Luthaf)

documentation

http://chemfiles.org/chemfiles.rs/

README

chemfiles.rs

Test status codecov.io Documentation

Rust binding for the chemfiles library.

Documentation

Usage

Add this to your Cargo.toml file:

[dependencies]
chemfiles = "0.10"

Here is a simple usage example. See the examples folder for additional examples.

use chemfiles::{Trajectory, Frame};

fn main() {
    let mut trajectory = Trajectory::open("filename.xyz", 'r').unwrap();
    let mut frame = Frame::new();

    trajectory.read(&mut frame).unwrap();

    println!("There are {} atoms in the frame", frame.size());

    let positions = frame.positions();

    // Do awesome things with the positions here !
}

Bug reports, feature requests

Please report any bug you find and any feature you may want as a Github issue.

Commit count: 254

cargo fmt