(capacity: usize)
| 109 | /// allocation failure. |
| 110 | #[inline] |
| 111 | pub fn try_with_capacity(capacity: usize) -> Result<Self, OutOfMemory> { |
| 112 | let mut bitset = Self::default(); |
| 113 | bitset.try_ensure_capacity(capacity)?; |
| 114 | Ok(bitset) |
| 115 | } |
| 116 | |
| 117 | /// Get the number of elements in this bitset. |
| 118 | /// |
nothing calls this directly
no test coverage detected