Builds the [`NullBuffer`] and resets the builder. Returns `None` if the builder only contains `true`s. Use [`Self::build`] when you don't need to reuse this builder.
(&mut self)
| 208 | /// Returns `None` if the builder only contains `true`s. Use [`Self::build`] |
| 209 | /// when you don't need to reuse this builder. |
| 210 | pub fn finish(&mut self) -> Option<NullBuffer> { |
| 211 | self.len = 0; |
| 212 | Some(NullBuffer::new(self.bitmap_builder.take()?.build())) |
| 213 | } |
| 214 | |
| 215 | /// Builds the [`NullBuffer`] without resetting the builder. |
| 216 | /// |