summaryrefslogtreecommitdiff
path: root/src/tag.rs
diff options
context:
space:
mode:
authorStuart Stock <stuart@int08h.com>2017-07-03 17:18:08 -0500
committerStuart Stock <stuart@int08h.com>2017-07-03 17:18:35 -0500
commit3a2e9ecc0b3a91457f654e2dbf0b13097f18bfcf (patch)
tree6dd4ac5daa404cc7cb04c903e562ccd075fb736e /src/tag.rs
parent0e955f89eca384ad71721b2842412235e0aac472 (diff)
downloadroughenough-3a2e9ecc0b3a91457f654e2dbf0b13097f18bfcf.zip
add docstrings and cleanup whitespace
Diffstat (limited to 'src/tag.rs')
-rw-r--r--src/tag.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/tag.rs b/src/tag.rs
index 56cfba2..7292493 100644
--- a/src/tag.rs
+++ b/src/tag.rs
@@ -1,10 +1,12 @@
/// An unsigned 32-bit value (key) that maps to a byte-string (value).
-#[derive(Debug, Eq, PartialEq, Ord, PartialOrd)]
+#[derive(Debug, PartialEq, PartialOrd)]
pub enum Tag {
// Enforcement of the "tags in strictly increasing order" rule is done using the
// little-endian encoding of the ASCII tag value; e.g. 'SIG\x00' is 0x00474953 and
- // 'NONC' is 0x434e4f4e.
+ // 'NONC' is 0x434e4f4e.
+ //
+ // Tags are written here in ascending order
SIG,
NONC,
DELE,