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 bd9c164 commit a14ef46Copy full SHA for a14ef46
src/bytes_mut.rs
@@ -96,11 +96,11 @@ const MIN_ORIGINAL_CAPACITY_WIDTH: usize = 10;
96
const ORIGINAL_CAPACITY_MASK: usize = 0b11100;
97
const ORIGINAL_CAPACITY_OFFSET: usize = 2;
98
99
+const VEC_POS_OFFSET: usize = 5;
100
// When the storage is in the `Vec` representation, the pointer can be advanced
101
// at most this value. This is due to the amount of storage available to track
102
// the offset is usize - number of KIND bits and number of ORIGINAL_CAPACITY
103
// bits.
-const VEC_POS_OFFSET: usize = 5;
104
const MAX_VEC_POS: usize = usize::MAX >> VEC_POS_OFFSET;
105
const NOT_VEC_POS_MASK: usize = 0b11111;
106
0 commit comments