We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9260f4f commit 7090b7eCopy full SHA for 7090b7e
crates/ty_python_semantic/src/rank.rs
@@ -57,11 +57,13 @@ impl RankBitBox {
57
Self { bits, chunk_ranks }
58
}
59
60
+ #[inline]
61
pub(crate) fn get_bit(&self, index: usize) -> Option<bool> {
62
self.bits.get(index).map(|bit| *bit)
63
64
65
/// Returns the number of bits _before_ (and not including) the given index that are set.
66
67
pub(crate) fn rank(&self, index: usize) -> u32 {
68
let chunk_index = index / CHUNK_SIZE;
69
let index_within_chunk = index % CHUNK_SIZE;
0 commit comments