]> git.lizzy.rs Git - rust.git/commitdiff
derive common traits for `collections::Bound`
authorAndrew Paseltiner <apaseltiner@gmail.com>
Tue, 10 Mar 2015 17:50:35 +0000 (13:50 -0400)
committerAndrew Paseltiner <apaseltiner@gmail.com>
Tue, 10 Mar 2015 17:50:35 +0000 (13:50 -0400)
src/libcollections/lib.rs

index 9c1c2cc5906ebca14ebd09ae361595ba4a9ad73d..f7943c0bb91402941e0dfa4f4b7afe92097daad8 100644 (file)
@@ -175,6 +175,7 @@ mod prelude {
 }
 
 /// An endpoint of a range of keys.
+#[derive(Clone, Copy, Debug, Hash, PartialEq, Eq)]
 pub enum Bound<T> {
     /// An inclusive bound.
     Included(T),