File tree Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change 1212 </Expand >
1313 </Type >
1414 <Type Name =" alloc::collections::vec_deque::VecDeque< *> " >
15- <DisplayString >{{ len={tail < = head ? head - tail : buf.cap - tail + head } }}</DisplayString >
15+ <DisplayString >{{ len={len } }}</DisplayString >
1616 <Expand >
17- <Item Name =" [len]" ExcludeView =" simple" >tail < = head ? head - tail : buf.cap - tail + head </Item >
17+ <Item Name =" [len]" ExcludeView =" simple" >len </Item >
1818 <Item Name =" [capacity]" ExcludeView =" simple" >buf.cap</Item >
1919 <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 >
2322 <Loop >
24- <If Condition =" i == head " >
23+ <If Condition =" i == len " >
2524 <Break />
2625 </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 >
2928 </Loop >
3029 </CustomListItems >
3130 </Expand >
You can’t perform that action at this time.
0 commit comments