aboutsummaryrefslogtreecommitdiff
path: root/src/spanned.rs
diff options
context:
space:
mode:
authorest31 <est31@users.noreply.github.com>2019-09-16 23:32:45 +0200
committerAlex Crichton <alex@alexcrichton.com>2019-09-16 16:32:45 -0500
commit7c9b0a39db0c4c235db372f88d725fae6e82889f (patch)
tree84ca2de46f064f98a92712e4011417f76a2f5352 /src/spanned.rs
parent029908cfa6507ca7db0f74fe46854cc0043fe806 (diff)
downloadmilf-rs-7c9b0a39db0c4c235db372f88d725fae6e82889f.tar.gz
milf-rs-7c9b0a39db0c4c235db372f88d725fae6e82889f.zip
Support deserializing spanned keys (#333)
* Store key spans in the deserializer * Support deserializing spanned keys * Store key spans of the table header as well * Support nested table key spans as well
Diffstat (limited to 'src/spanned.rs')
-rw-r--r--src/spanned.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/spanned.rs b/src/spanned.rs
index 1538f96..3318d28 100644
--- a/src/spanned.rs
+++ b/src/spanned.rs
@@ -28,7 +28,7 @@ pub(crate) const VALUE: &str = "$__toml_private_value";
/// assert_eq!(u.s.into_inner(), String::from("value"));
/// }
/// ```
-#[derive(Clone, Debug, PartialEq)]
+#[derive(Clone, Debug, PartialEq, Eq, Hash)]
pub struct Spanned<T> {
/// The start range.
start: usize,