aboutsummaryrefslogtreecommitdiff
path: root/src/raw/parser.rs
diff options
context:
space:
mode:
authorDaniel Schadt <kingdread@gmx.de>2020-05-02 14:58:54 +0200
committerDaniel Schadt <kingdread@gmx.de>2020-05-02 14:58:54 +0200
commit078b55e8ae17bf781371c4bd6bf40da2ba3db336 (patch)
tree9d0af332f1a34ba8c7571cae566b67c495a77662 /src/raw/parser.rs
parent5741abdfe2dfa6a93e7d71c39ecedadbff9b65ee (diff)
downloadevtclib-078b55e8ae17bf781371c4bd6bf40da2ba3db336.tar.gz
evtclib-078b55e8ae17bf781371c4bd6bf40da2ba3db336.tar.bz2
evtclib-078b55e8ae17bf781371c4bd6bf40da2ba3db336.zip
implement Hash, Default, PartialEq for raw types
Diffstat (limited to 'src/raw/parser.rs')
-rw-r--r--src/raw/parser.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/raw/parser.rs b/src/raw/parser.rs
index eaf8e6b..dcc7f2f 100644
--- a/src/raw/parser.rs
+++ b/src/raw/parser.rs
@@ -76,7 +76,7 @@ use thiserror::Error;
use super::*;
/// EVTC file header.
-#[derive(Clone, Debug, PartialEq, Eq)]
+#[derive(Clone, Debug, PartialEq, Eq, Hash, Default)]
pub struct Header {
/// arcpds build date, as `yyyymmdd` string.
pub arcdps_build: String,
@@ -92,7 +92,7 @@ pub struct Header {
///
/// Note that this struct does not yet do any preprocessing of the events. It is simply a
/// representation of the input file as a structured object.
-#[derive(Clone, Debug)]
+#[derive(Clone, Debug, PartialEq, Eq, Hash, Default)]
pub struct Evtc {
/// The file header values.
pub header: Header,
@@ -110,7 +110,7 @@ pub struct Evtc {
///
/// This can speed up parsing for applications which can work with the header, as the event stream
/// is the largest chunk of data that has to be parsed.
-#[derive(Clone, Debug)]
+#[derive(Clone, Debug, PartialEq, Eq, Hash, Default)]
pub struct PartialEvtc {
/// The file header values.
pub header: Header,