91 Commits

Author SHA1 Message Date
Josh Mitchell
7ee04620f6 Error::task() now checks sources 2020-11-10 20:11:15 +11:00
Josh Mitchell
323ba0b88c Clarified error message when read_num_atoms() fails during read() 2020-11-10 19:49:58 +11:00
Josh Mitchell
85b106f5d8 Returned Error to being an enum, as other fields were unused 2020-11-10 19:34:58 +11:00
Josh Mitchell
ce16b20b67 Slightly clearer docs 2020-11-10 18:52:16 +11:00
Josh Mitchell
51635f2583 Restricted ErrorTask to only being relevant to C API errors 2020-11-10 18:50:14 +11:00
Josh Mitchell
420af8b369 Reduced role of ErrorTask to simplify errors 2020-11-10 18:17:23 +11:00
Josh Mitchell
4a99b4e0b0 Cleaned up errors a bit 2020-11-10 17:51:41 +11:00
Josh Mitchell
65294abee8 Replaced frame resizing with a simple check 2020-11-10 17:41:11 +11:00
Josh Mitchell
1fbce21ff6 Corrected undefined behaviour when calling Trajectory.read() on improperly sized Frame 2020-11-10 00:59:10 +11:00
Josh Mitchell
d1b69d3fd4 Treat ToCString differently in Display based on whether it has a source 2020-11-09 22:42:50 +11:00
Josh Mitchell
9ac3c959d9 Added ToCString variant to Error.source() 2020-11-09 22:40:37 +11:00
Josh Mitchell
f757072523 Added documentation to the errors module 2020-11-09 22:14:16 +11:00
Josh Mitchell
95b1bdba57 Streamlined error generation 2020-11-09 22:12:07 +11:00
Josh Mitchell
36a722e721 Refactored ErrorCode as Error.source() 2020-11-09 22:06:03 +11:00
Josh Mitchell
18436aaaa3 Nicer error messages 2020-11-09 22:04:23 +11:00
Josh Mitchell
4ca96364b9 Made error construction methods pub(crate) 2020-11-09 22:03:00 +11:00
Josh Mitchell
55fa21d45c Broke out errors module and handle error codes as rust enum 2020-11-09 21:58:39 +11:00
Daniel Bauer
75bd0c9437 Merge pull request #4 from Yoshanuikabundi/no-unwrap
Removed unwrap()s, refactored iterator, removed memleak
2020-11-09 08:37:37 +01:00
Josh Mitchell
fc35777aa0 Unit tests for Error::is_eof() 2020-11-09 18:15:56 +11:00
Josh Mitchell
e95fea3bfc Unit test for path_to_cstring() 2020-11-09 17:33:03 +11:00
Josh Mitchell
f9cf479baf Removed unwrap()s, refactored iterator, removed memleak 2020-11-09 17:20:46 +11:00
Daniel Bauer
05b309e4bd Update README.md 2020-11-08 11:25:36 +01:00
Daniel Bauer
e19f7efd73 Update README.md 2020-11-08 11:22:21 +01:00
daniel
e07d71beb6 travis 2020-11-08 11:16:00 +01:00
Daniel Bauer
ca7624fe1a Merge pull request #2 from Yoshanuikabundi/open-ergonomics
Improved ergonomics for opening files
2020-11-08 09:57:43 +01:00
daniel
c998ded6bb unit tests 2020-11-08 09:56:27 +01:00
Josh Mitchell
0351857606 Added open_read, open_write and open_append convenience methods 2020-11-08 00:43:29 +11:00
Josh Mitchell
4a99228d87 Changed an integration test to take path as &str 2020-11-08 00:26:30 +11:00
Josh Mitchell
e67b6a0e5f Functions that took &Path now take impl AsRef<Path> 2020-11-08 00:25:07 +11:00
daniel
e77f43d8ae version up v0.2.0 2020-11-07 11:57:48 +01:00
daniel
d16421708d test some error types 2020-11-07 11:57:07 +01:00
Daniel Bauer
337a5a5c1d Merge pull request #1 from Yoshanuikabundi/remove-failure
Remove failure
2020-11-07 11:53:07 +01:00
Josh Mitchell
cbd45f74dc Replace failure library with new Error type 2020-11-07 20:12:41 +11:00
Josh Mitchell
0a613c2022 Suppressed or corrected hints and warnings 2020-11-07 20:05:37 +11:00
Josh Mitchell
e30a175d0d Format with rustfmt 2020-11-07 20:03:05 +11:00
Daniel Bauer
042f0f82c6 Create README.md v0.1.0 2020-04-16 15:17:11 +02:00
daniel
901346cfaa add correct license 2020-04-16 15:05:34 +02:00
daniel
ceb09f6371 iterators 2020-04-16 15:00:20 +02:00
daniel
28a08a1401 documentation 2020-04-16 14:37:59 +02:00
daniel
2303303472 XTCTrajectory and TRRTrajectory 2020-04-16 13:47:08 +02:00
daniel
43d2d74468 c_abi 2020-04-16 13:03:33 +02:00