Skip to content

Commit

Permalink
Add more documentation to the ArrayStore capacity method
Browse files Browse the repository at this point in the history
  • Loading branch information
Kerollmops committed Nov 25, 2024
1 parent 2ab0773 commit 4e10179
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions roaring/src/bitmap/store/array_store/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ impl ArrayStore {
ArrayStore { vec: Vec::with_capacity(capacity) }
}

/// The number of total values that can be inserted without needing to reallocate.
pub fn capacity(&self) -> usize {
self.vec.capacity()
}
Expand Down

0 comments on commit 4e10179

Please sign in to comment.