forgot what this commit is about

This commit is contained in:
Daniel Bauer
2017-01-27 15:11:29 +01:00
parent b68e4be2a3
commit 98bd75ebfd
3 changed files with 113 additions and 108 deletions

View File

@@ -6,7 +6,7 @@ use std::error::Error;
use std::io::prelude::*;
use std::fs::File;
use std::path::Path;
use std::fmt;
use std::io::BufReader;
@@ -60,6 +60,21 @@ pub struct Frame {
pub lj_cutoff: f64,
}
impl fmt::Debug for Frame {
fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result {
fmt.debug_struct("Frame")
.field("num_particles", &self.num_particles)
.field("box_x", &self.box_x)
.field("box_y", &self.box_y)
.field("box_z", &self.box_z)
.field("temperature", &self.temperature)
.field("lj_eps", &self.lj_eps)
.field("lj_sig", &self.lj_sig)
.field("lj_cutoff", &self.lj_cutoff)
.finish()
}
}
pub struct TrjReader {
pub reader: BufReader<File>,
}