about summary refs log tree commit diff
diff options
context:
space:
mode:
authorBrendan Zabarauskas <bjzaba@yahoo.com.au>2014-03-23 12:31:20 +1100
committerBrendan Zabarauskas <bjzaba@yahoo.com.au>2014-04-29 18:50:31 -0700
commit43320e584738113f1e5fb379fc34a1b38de10db5 (patch)
tree031ad73abc353e5cc122353c5b3bba0fa8ea51a6
parenta3d9980b25a239da612df9f8a38dec95f57adf4a (diff)
downloadrust-43320e584738113f1e5fb379fc34a1b38de10db5.tar.gz
rust-43320e584738113f1e5fb379fc34a1b38de10db5.zip
Document derived traits for bitset! macro
-rw-r--r--src/libcollections/bitflags.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libcollections/bitflags.rs b/src/libcollections/bitflags.rs
index 22b98faf6bf..3e50f415392 100644
--- a/src/libcollections/bitflags.rs
+++ b/src/libcollections/bitflags.rs
@@ -72,6 +72,11 @@
 //! }
 //! ~~~
 //!
+//! # Derived traits
+//!
+//! The `Eq`, `TotalEq`, and `Clone` traits are automatically derived for the
+//! `struct` using the `deriving` attribute.
+//!
 //! # Operators
 //!
 //! The following operator traits are implemented for the generated `struct`: