1+ <?xml version =" 1.0" encoding =" utf-8" ?>
2+ <AutoVisualizer xmlns =" http://schemas.microsoft.com/vstudio/debugger/natvis/2010" >
3+ <Type Name =" collections::vec::Vec< *> " >
4+ <DisplayString >{{ size={len} }}</DisplayString >
5+ <Expand >
6+ <Item Name =" [size]" ExcludeView =" simple" >len</Item >
7+ <Item Name =" [capacity]" ExcludeView =" simple" >buf.cap</Item >
8+ <ArrayItems >
9+ <Size >len</Size >
10+ <ValuePointer >buf.ptr.pointer.__0</ValuePointer >
11+ </ArrayItems >
12+ </Expand >
13+ </Type >
14+ <Type Name =" collections::vec_deque::VecDeque< *> " >
15+ <DisplayString >{{ size={tail < = head ? head - tail : buf.cap - tail + head} }}</DisplayString >
16+ <Expand >
17+ <Item Name =" [size]" ExcludeView =" simple" >tail < = head ? head - tail : buf.cap - tail + head</Item >
18+ <Item Name =" [capacity]" ExcludeView =" simple" >buf.cap</Item >
19+ <CustomListItems >
20+ <Variable Name =" i" InitialValue =" tail" />
21+
22+ <Size >tail < = head ? head - tail : buf.cap - tail + head</Size >
23+ <Loop >
24+ <If Condition =" i == head" >
25+ <Break />
26+ </If >
27+ <Item >buf.ptr.pointer.__0 + i</Item >
28+ <Exec >i = (i + 1 == buf.cap ? 0 : i + 1)</Exec >
29+ </Loop >
30+ </CustomListItems >
31+ </Expand >
32+ </Type >
33+ <Type Name =" collections::linked_list::LinkedList< *> " >
34+ <DisplayString >{{ size={len} }}</DisplayString >
35+ <Expand >
36+ <LinkedListItems >
37+ <Size >len</Size >
38+ <HeadPointer >*(collections::linked_list::Node< $T1> **)& head</HeadPointer >
39+ <NextPointer >*(collections::linked_list::Node< $T1> **)& next</NextPointer >
40+ <ValueNode >element</ValueNode >
41+ </LinkedListItems >
42+ </Expand >
43+ </Type >
44+ <Type Name =" collections::string::String" >
45+ <DisplayString >{*(char**)this,[vec.len]}</DisplayString >
46+ <StringView >*(char**)this,[vec.len]</StringView >
47+ <Expand >
48+ <Item Name =" [size]" ExcludeView =" simple" >vec.len</Item >
49+ <Item Name =" [capacity]" ExcludeView =" simple" >vec.buf.cap</Item >
50+ <ArrayItems >
51+ <Size >vec.len</Size >
52+ <ValuePointer >*(char**)this</ValuePointer >
53+ </ArrayItems >
54+ </Expand >
55+ </Type >
56+ </AutoVisualizer >
0 commit comments