File tree 1 file changed +7
-8
lines changed
1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change 12
12
</Expand >
13
13
</Type >
14
14
<Type Name =" alloc::collections::vec_deque::VecDeque< *> " >
15
- <DisplayString >{{ len={tail < = head ? head - tail : buf.cap - tail + head } }}</DisplayString >
15
+ <DisplayString >{{ len={len } }}</DisplayString >
16
16
<Expand >
17
- <Item Name =" [len]" ExcludeView =" simple" >tail < = head ? head - tail : buf.cap - tail + head </Item >
17
+ <Item Name =" [len]" ExcludeView =" simple" >len </Item >
18
18
<Item Name =" [capacity]" ExcludeView =" simple" >buf.cap</Item >
19
19
<CustomListItems >
20
- <Variable Name =" i" InitialValue =" tail" />
21
-
22
- <Size >tail < = head ? head - tail : buf.cap - tail + head</Size >
20
+ <Variable Name =" i" InitialValue =" 0" />
21
+ <Size >len</Size >
23
22
<Loop >
24
- <If Condition =" i == head " >
23
+ <If Condition =" i == len " >
25
24
<Break />
26
25
</If >
27
- <Item >buf.ptr.pointer.pointer[i ]</Item >
28
- <Exec >i = ( i + 1 == buf.cap ? 0 : i + 1) </Exec >
26
+ <Item >buf.ptr.pointer.pointer[(i + head) % buf.cap ]</Item >
27
+ <Exec >i = i + 1</Exec >
29
28
</Loop >
30
29
</CustomListItems >
31
30
</Expand >
You can’t perform that action at this time.
0 commit comments