diff options
author | Daniel Schadt <kingdread@gmx.de> | 2020-05-02 14:58:54 +0200 |
---|---|---|
committer | Daniel Schadt <kingdread@gmx.de> | 2020-05-02 14:58:54 +0200 |
commit | 078b55e8ae17bf781371c4bd6bf40da2ba3db336 (patch) | |
tree | 9d0af332f1a34ba8c7571cae566b67c495a77662 /src/raw/parser.rs | |
parent | 5741abdfe2dfa6a93e7d71c39ecedadbff9b65ee (diff) | |
download | evtclib-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.rs | 6 |
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, |