documentation

This commit is contained in:
daniel
2020-11-16 13:26:03 +01:00
parent 40714061f6
commit 58617dcf4d
3 changed files with 8 additions and 7 deletions

View File

@@ -32,11 +32,10 @@ impl IntoIterator for TRRTrajectory {
}
}
/*
Iterator for trajectories. This iterator yields a Result<Frame, Error>
for each frame in the trajectory file and stops with yielding None once the
trajectory is finished. Also yields None after the first occurence of an error
*/
/// Iterator for trajectories.
/// This iterator yields a Result<Frame, Error> for each frame in the
/// trajectory file and stops with yielding None once the trajectory is
/// EOF. Also yields None after the first occurrence of an error
pub struct TrajectoryIterator<T> {
trajectory: T,
item: Rc<Frame>,