|
1 | 1 | <?xml version="1.0" encoding="utf-8"?>
|
2 | 2 | <AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010">
|
3 | 3 | <Type Name="alloc::vec::Vec<*>">
|
4 |
| - <DisplayString>{{ size={len} }}</DisplayString> |
| 4 | + <DisplayString>{{ len={len} }}</DisplayString> |
5 | 5 | <Expand>
|
6 |
| - <Item Name="[size]" ExcludeView="simple">len</Item> |
| 6 | + <Item Name="[len]" ExcludeView="simple">len</Item> |
7 | 7 | <Item Name="[capacity]" ExcludeView="simple">buf.cap</Item>
|
8 | 8 | <ArrayItems>
|
9 | 9 | <Size>len</Size>
|
|
12 | 12 | </Expand>
|
13 | 13 | </Type>
|
14 | 14 | <Type Name="alloc::collections::vec_deque::VecDeque<*>">
|
15 |
| - <DisplayString>{{ size={tail <= head ? head - tail : buf.cap - tail + head} }}</DisplayString> |
| 15 | + <DisplayString>{{ len={tail <= head ? head - tail : buf.cap - tail + head} }}</DisplayString> |
16 | 16 | <Expand>
|
17 |
| - <Item Name="[size]" ExcludeView="simple">tail <= head ? head - tail : buf.cap - tail + head</Item> |
| 17 | + <Item Name="[len]" ExcludeView="simple">tail <= head ? head - tail : buf.cap - tail + head</Item> |
18 | 18 | <Item Name="[capacity]" ExcludeView="simple">buf.cap</Item>
|
19 | 19 | <CustomListItems>
|
20 | 20 | <Variable Name="i" InitialValue="tail" />
|
|
31 | 31 | </Expand>
|
32 | 32 | </Type>
|
33 | 33 | <Type Name="alloc::collections::linked_list::LinkedList<*>">
|
34 |
| - <DisplayString>{{ size={len} }}</DisplayString> |
| 34 | + <DisplayString>{{ len={len} }}</DisplayString> |
35 | 35 | <Expand>
|
36 | 36 | <LinkedListItems>
|
37 | 37 | <Size>len</Size>
|
|
42 | 42 | </Expand>
|
43 | 43 | </Type>
|
44 | 44 | <Type Name="alloc::string::String">
|
45 |
| - <DisplayString>{*(char**)this,[vec.len]s8}</DisplayString> |
46 |
| - <StringView>*(char**)this,[vec.len]s8</StringView> |
| 45 | + <DisplayString>{(char*)vec.buf.ptr.pointer,[vec.len]s8}</DisplayString> |
| 46 | + <StringView>(char*)vec.buf.ptr.pointer,[vec.len]s8</StringView> |
47 | 47 | <Expand>
|
48 |
| - <Item Name="[size]" ExcludeView="simple">vec.len</Item> |
| 48 | + <Item Name="[len]" ExcludeView="simple">vec.len</Item> |
49 | 49 | <Item Name="[capacity]" ExcludeView="simple">vec.buf.cap</Item>
|
50 |
| - <ArrayItems> |
51 |
| - <Size>vec.len</Size> |
52 |
| - <ValuePointer>*(char**)this</ValuePointer> |
53 |
| - </ArrayItems> |
| 50 | + <Synthetic Name="[chars]"> |
| 51 | + <Expand> |
| 52 | + <ArrayItems> |
| 53 | + <Size>vec.len</Size> |
| 54 | + <ValuePointer>(char*)vec.buf.ptr.pointer</ValuePointer> |
| 55 | + </ArrayItems> |
| 56 | + </Expand> |
| 57 | + </Synthetic> |
| 58 | + </Expand> |
| 59 | + </Type> |
| 60 | + <Type Name="alloc::rc::Rc<*>"> |
| 61 | + <DisplayString>{ptr.pointer->value}</DisplayString> |
| 62 | + <Expand> |
| 63 | + <ExpandedItem>ptr.pointer->value</ExpandedItem> |
| 64 | + </Expand> |
| 65 | + </Type> |
| 66 | + <Type Name="alloc::sync::Arc<*>"> |
| 67 | + <DisplayString>{ptr.pointer->data}</DisplayString> |
| 68 | + <Expand> |
| 69 | + <ExpandedItem>ptr.pointer->data</ExpandedItem> |
| 70 | + </Expand> |
| 71 | + </Type> |
| 72 | + <Type Name="alloc::sync::Weak<*>"> |
| 73 | + <DisplayString>{ptr.pointer->data}</DisplayString> |
| 74 | + <Expand> |
| 75 | + <ExpandedItem>ptr.pointer->data</ExpandedItem> |
54 | 76 | </Expand>
|
55 | 77 | </Type>
|
56 | 78 | </AutoVisualizer>
|
0 commit comments