about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAndrew Paseltiner <apaseltiner@gmail.com>2015-03-10 13:50:35 -0400
committerAndrew Paseltiner <apaseltiner@gmail.com>2015-03-10 13:50:35 -0400
commitf58a65374b6a372b641852283cc4ce94bdb07035 (patch)
tree74f3436b5f2ba066c13ee2a75bb94591edc189ab
parent698c1008d6009fc6cf5a4e797cef62b52f7d1e75 (diff)
downloadrust-f58a65374b6a372b641852283cc4ce94bdb07035.tar.gz
rust-f58a65374b6a372b641852283cc4ce94bdb07035.zip
derive common traits for `collections::Bound`
-rw-r--r--src/libcollections/lib.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libcollections/lib.rs b/src/libcollections/lib.rs
index 9c1c2cc5906..f7943c0bb91 100644
--- a/src/libcollections/lib.rs
+++ b/src/libcollections/lib.rs
@@ -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),