You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/getters.nr
+22-19Lines changed: 22 additions & 19 deletions
Original file line number
Diff line number
Diff line change
@@ -14,8 +14,8 @@ pub struct KeySearchResult {
14
14
found: bool, // does the key exist?
15
15
target_lt_smallest_entry: bool, // is the target keyhash smaller than the smallest keyhash in self.key_hashes?
16
16
target_gt_largest_entry: bool, // is the target keyhash larger than the largest keyhash in self.key_hashes?
17
-
lhs_index: Field, // either the index of the key being searched for, or the index of the keyhash in self.key_hashes that is closest to keyhash (hash > lhs_index_hash)
18
-
rhs_index: Field, // either the index of the key being searched for, or the index of the keyhash in self.key_hashes that is closest to keyhash (hash < rhs_index_hash)
17
+
lhs_index: u32, // either the index of the key being searched for, or the index of the keyhash in self.key_hashes that is closest to keyhash (hash > lhs_index_hash)
18
+
rhs_index: u32, // either the index of the key being searched for, or the index of the keyhash in self.key_hashes that is closest to keyhash (hash < rhs_index_hash)
19
19
}
20
20
21
21
/**
@@ -36,7 +36,7 @@ impl<let NumBytes: u32, let NumPackedFields: u32, let MaxNumTokens: u32, let Max
36
36
assert(self.layer_type_of_root != ARRAY_LAYER, "cannot extract array elements via a key");
37
37
38
38
let (exists, key_index) = self.key_exists_impl(key);
0 commit comments