pub fn with_capacity(width: usize, n: usize) -> Self {
        assert!(width <= 8, "Only encoding widths up to 8 supported");
        BitEnc {
            storage: Vec::with_capacity(n * width / 32),
            width,
            mask: mask(width),
            len: 0,
            usable_bits_per_block: 32 - 32 % width,
        }
    }
/// Create a new instance with a given capacity and encoding width
/// (e.g. width=2 for using two bits per value).
/// Supports widths up to 8 bits per character, i.e. `1 <= width <= 8`.
///
/// Complexity: O(1)
///
/// # Example
///
/// ```
/// use bio::data_structures::bitenc::BitEnc;
///
/// let bitenc = BitEnc::with_capacity(3, 42);
/// ```
Create a new instance with a given capacity and encoding width
.
Supports widths up to 8 bits per character, i.e.


Create a new instance with a given capacity and encoding width . Supports widths up to 8 bits per character i . e .
pub fn with_capacity(width: usize, n: usize) -> Self {
        assert!(width <= 8, "Only encoding widths up to 8 supported");
        BitEnc {
            storage: Vec::with_capacity(n * width / 32),
            width,
            mask: mask(width),
            len: 0,
            usable_bits_per_block: 32 - 32 % width,
        }
    }
pub fn with_capacity ( width : usize , n : usize ) -> Self { assert ! ( width 8 " " ) ; BitEnc { storage : Vec :: with_capacity ( n * width / 32 ) , width , mask : mask ( width ) , len : 0 , usable_bits_per_block : 32 - 32 % width , } }
Create a new instance with a given capacity and encoding width
(e.g.
Create a new instance with a given capacity and encoding width ( e . g .
width
usize
n
usize
width
usize
n
usize
example
```
use bio::data_structures::bitenc::BitEnc.

let bitenc = BitEnc::with_capacity(3, 42);
```
` ` ` use bio :: data_structures :: bitenc :: BitEnc . let bitenc = BitEnc :: with_capacity ( 3 42 ) ; ` ` `