Skip to content

Commit dbe18ca

Browse files
committed
document derived traits depend on length
1 parent 054e4b5 commit dbe18ca

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,9 @@ fn div_rem(x: usize, d: usize) -> (usize, usize) {
5050
///
5151
/// The bit set has a fixed capacity in terms of enabling bits (and the
5252
/// capacity can grow using the `grow` method).
53+
///
54+
/// Derived traits depend on both the zeros and ones, so [0,1] is not equal to
55+
/// [0,1,0].
5356
#[derive(Debug, PartialEq, Eq, PartialOrd, Ord, Hash, Default)]
5457
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
5558
pub struct FixedBitSet {

0 commit comments

Comments
 (0)