File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -340,6 +340,12 @@ impl<T: Idx> BitRelations<BitSet<T>> for BitSet<T> {
340
340
}
341
341
}
342
342
343
+ impl < T : Idx > From < GrowableBitSet < T > > for BitSet < T > {
344
+ fn from ( bit_set : GrowableBitSet < T > ) -> Self {
345
+ bit_set. bit_set
346
+ }
347
+ }
348
+
343
349
/// A fixed-size bitset type with a partially dense, partially sparse
344
350
/// representation. The bitset is broken into chunks, and chunks that are all
345
351
/// zeros or all ones are represented and handled very efficiently.
@@ -1469,6 +1475,12 @@ impl<T: Idx> GrowableBitSet<T> {
1469
1475
}
1470
1476
}
1471
1477
1478
+ impl < T : Idx > From < BitSet < T > > for GrowableBitSet < T > {
1479
+ fn from ( bit_set : BitSet < T > ) -> Self {
1480
+ Self { bit_set }
1481
+ }
1482
+ }
1483
+
1472
1484
/// A fixed-size 2D bit matrix type with a dense representation.
1473
1485
///
1474
1486
/// `R` and `C` are index types used to identify rows and columns respectively;
You can’t perform that action at this time.
0 commit comments