From 70b079d79d8ab42b682153a126a38b6f1c1b43f2 Mon Sep 17 00:00:00 2001 From: Kerollmops Date: Sat, 12 May 2018 13:47:57 +0200 Subject: [PATCH] feat: Add useful derivable traits to `IndexedValues` types --- src/map.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/map.rs b/src/map.rs index 0ea006ae6..a68867eb7 100644 --- a/src/map.rs +++ b/src/map.rs @@ -231,7 +231,7 @@ impl<'a, 'm, 'v, T: 'v + 'a> fst::Streamer<'a> for Union<'m, 'v, T> { } } -#[derive(Debug)] +#[derive(Copy, Clone, Debug, Eq, Hash, Ord, PartialEq, PartialOrd)] pub struct IndexedValues<'a, T: 'a> { pub index: usize, pub values: &'a [T], @@ -305,7 +305,7 @@ where } } -#[derive(Debug)] +#[derive(Copy, Clone, Debug, Eq, Hash, Ord, PartialEq, PartialOrd)] pub struct IndexedValuesWithState<'a, T: 'a, U> { pub index: usize, pub values: &'a [T],