diff --git a/src/lib.rs b/src/lib.rs index 47b626e..8098cb5 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -59,6 +59,15 @@ pub struct FixedBitSet { impl FixedBitSet { + /// Create a new empty **FixedBitSet**. + pub const fn new() -> Self + { + FixedBitSet { + data: Vec::new(), + length: 0, + } + } + /// Create a new **FixedBitSet** with a specific number of bits, /// all initially clear. pub fn with_capacity(bits: usize) -> Self